Property | Type | Description | |
---|---|---|---|
$endTime | double | The time at which the timer was ended. | |
$startTime | double | The time at which the timer was started. |
Method | Description | |
---|---|---|
__construct ( double | null $startTime = null ) : void | Start the timer. | |
end ( double | null $time = null ) : void | End the timer. | |
getElapsedTime ( ) : double | Get the amount of time (in milliseconds) that elapsed while the timer was turned on. |
public __construct ( double | null $startTime = null ) : void | ||
$startTime | double | null | |
return | void |
public getElapsedTime ( ) : double | ||
return | double |
protected double $endTime | ||
return | double |