class StandardTimer implements TimerInterface

Methods

__construct()

Empty constructor for forward compatibility.

void
start()

Starts the timer.

void
stop()

Stops the timer.

bool
isRunning()

Returns true if the timer is currently running.

float|null
getDuration()

Returns the time (in seconds) the timer ran.

Details

at line 34
__construct()

Empty constructor for forward compatibility.

at line 43
void start()

Starts the timer.

Return Value

void

at line 57
void stop()

Stops the timer.

Return Value

void

at line 71
bool isRunning()

Returns true if the timer is currently running.

Return Value

bool

at line 83
float|null getDuration()

Returns the time (in seconds) the timer ran.

Returns null if no time has been recorded.

Return Value

float|null