class Stopwatch

Properties

array $timers

All of the current timers.

Methods

void
start(string $key)

Start a new timer.

float|null
check(string $key)

Check a given timer and get the elapsed time in milliseconds.

void
forget(string $key)

Forget a given timer.

Details

at line 17
void start(string $key)

Start a new timer.

Parameters

string $key

Return Value

void

at line 25
float|null check(string $key)

Check a given timer and get the elapsed time in milliseconds.

Parameters

string $key

Return Value

float|null

at line 35
void forget(string $key)

Forget a given timer.

Parameters

string $key

Return Value

void