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 33
array getLaps()

Returns the laps.

Return Value

array

at line 43
int getLapCount()

Returns the number of laps.

Return Value

int

at line 53
bool isRunning()

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

Return Value

bool

at line 63
Stopwatch start()

Starts the stopwatch.

Return Value

Stopwatch

at line 75
float lap()

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

Return Value

float

at line 91
float getElapsedTime()

Get elapsed time.

Return Value

float

at line 103
float stop()

Stops the timer and returns the elapsed time.

Return Value

float