Method | Description | |
---|---|---|
__construct ( mixed $timestamp = null ) | Set the timestamp. | |
getCallable ( ) : callable | Returns this object as a callable for the mock function. | |
getMicrotime ( boolean $get_as_float = false ) : mixed | Returns the microtime. | |
getTime ( ) : integer | Returns the time without the microseconds. | |
increment ( $increment ) | ||
setMicrotime ( string $timestamp ) | Set the timestamp as string. | |
setMicrotimeAsFloat ( float $timestamp ) | Set the timestamp as float. |
public __construct ( mixed $timestamp = null ) | ||
$timestamp | mixed | The timestamp, if ommited the current time. |
public getCallable ( ) : callable | ||
return | callable | The callable for this object. |
public getMicrotime ( boolean $get_as_float = false ) : mixed | ||
$get_as_float | boolean | If true returns timestamp as float, else string |
return | mixed | The value. |
public setMicrotime ( string $timestamp ) | ||
$timestamp | string | The timestamp as string. |
public setMicrotimeAsFloat ( float $timestamp ) | ||
$timestamp | float | The timestamp as float. |