class NullTimer implements TimerInterface

Implementation of TimerInterface that does not actually record any time.

Used in production to reduce overhead.

Methods

__construct()

Empty constructor for forward compatibility.

void
start()

Starts the timer.

void
stop()

Stops the timer.

bool
isRunning()

No description

float|null
getDuration()

No description

Details

at line 19
__construct()

Empty constructor for forward compatibility.

at line 23
void start()

Starts the timer.

Return Value

void

at line 27
void stop()

Stops the timer.

Return Value

void

at line 34
bool isRunning()

Return Value

bool

at line 42
float|null getDuration()

Return Value

float|null