Neuron-PHP

SystemTimer extends Memory
in package

Singleton based timer.

Table of Contents

Properties

$_instance  : mixed
$_timer  : mixed

Methods

getElapsed()  : mixed
getInstance()  : ISingleton|null
getLaps()  : array<string|int, mixed>
init()  : mixed
instance()  : mixed
Gets the global object instance.
invalidate()  : void
Clears the current global object.
lap()  : int
reset()  : mixed
serialize()  : void
Writes the object data to the storage medium.
start()  : mixed
stop()  : mixed

Properties

$_instance

public static mixed $_instance = []

Methods

getLaps()

public static getLaps() : array<string|int, mixed>
Return values
array<string|int, mixed>

instance()

Gets the global object instance.

public static instance() : mixed

invalidate()

Clears the current global object.

public static invalidate() : void

lap()

public static lap(string $name) : int
Parameters
$name : string
Return values
int

serialize()

Writes the object data to the storage medium.

public serialize() : void

        
On this page

Search results