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.

start()

Starts the stopwatch.

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.

Return Value

array

at line 41
int getLapCount()

Returns the number of laps.

Return Value

int

at line 51
bool isRunning()

Returns TRUE if the stopwatch is still running and FALSE if not.

Return Value

bool

at line 61
Stopwatch start()

Starts the stopwatch.

Return Value

Stopwatch

at line 73
float lap()

Starts a new lap and returns the time of the previous lap.

Return Value

float

at line 89
float getElapsedTime()

Get elapsed time.

Return Value

float

at line 101
float stop()

Stops the timer and returns the elapsed time.

Return Value

float