ITimer
in
Stopwatch capabilities.
Table of Contents
Methods
- getElapsed() : int
- getLaps() : array<string|int, mixed>
- lap() : int
- reset() : mixed
- Reset all timer values.
- start() : mixed
- Start the timer.
- stop() : mixed
- Stop the timer.
Methods
getElapsed()
public
getElapsed() : int
Return values
int —Number of seconds elapsed .
getLaps()
public
getLaps() : array<string|int, mixed>
Return values
array<string|int, mixed>lap()
public
lap(string $name) : int
Parameters
- $name : string
Return values
intreset()
Reset all timer values.
public
reset() : mixed
start()
Start the timer.
public
start() : mixed
stop()
Stop the timer.
public
stop() : mixed