PHP 클래스 Jyxo\Timer

저자: Štěpán Svoboda
저자: Matěj Humpál
파일 보기 프로젝트 열기: jyxo/php 1 사용 예제들

공개 메소드들

메소드 설명
start ( string $name = '' ) : string Starts measuring. Returns timer name.
stop ( string $name ) : float Returns the time difference in seconds.
timer ( ) : float Returns the time form the last function call.

메소드 상세

start() 공개 정적인 메소드

Starts measuring. Returns timer name.
public static start ( string $name = '' ) : string
$name string Custom timer name
리턴 string

stop() 공개 정적인 메소드

Returns the time difference in seconds.
public static stop ( string $name ) : float
$name string Timer name
리턴 float

timer() 공개 정적인 메소드

In case of first function call, function returns 0.
public static timer ( ) : float
리턴 float