Stopwatch
class Stopwatch
Stopwatch.
Properties
protected array | $laps | Laps. |
Methods
array
getLaps()
Returns the laps.
int
getLapCount()
Returns the number of laps.
bool
isRunning()
Returns TRUE if the stopwatch is still running and FALSE if not.
float
lap()
Starts a new lap and returns the time of the previous lap.
float
getElapsedTime()
Get elapsed time.
float
stop()
Stops the timer and returns the elapsed time.
Details
at line 31
array
getLaps()
Returns the laps.
at line 41
int
getLapCount()
Returns the number of laps.
at line 51
bool
isRunning()
Returns TRUE if the stopwatch is still running and FALSE if not.
at line 61
Stopwatch
start()
Starts the stopwatch.
at line 73
float
lap()
Starts a new lap and returns the time of the previous lap.
at line 89
float
getElapsedTime()
Get elapsed time.
at line 101
float
stop()
Stops the timer and returns the elapsed time.