Метод | Описание | |
---|---|---|
__construct ( callable $microtime ) | Construct a new system clock. | |
instance ( ) : Eloquent\Phony\Clock\Clock | Get the static instance of this clock. | |
time ( ) : float | Get the current time. |
public __construct ( callable $microtime ) | ||
$microtime | callable | The implementation of microtime() to use. |
public static instance ( ) : Eloquent\Phony\Clock\Clock | ||
Результат | Eloquent\Phony\Clock\Clock | The static clock. |