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
= []
$_timer
private
mixed
$_timer
Methods
getElapsed()
public
static getElapsed() : mixed
getInstance()
public
static getInstance() : ISingleton|null
Return values
ISingleton|nullgetLaps()
public
static getLaps() : array<string|int, mixed>
Return values
array<string|int, mixed>init()
public
init() : 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
intreset()
public
static reset() : mixed
serialize()
Writes the object data to the storage medium.
public
serialize() : void
start()
public
static start() : mixed
stop()
public
static stop() : mixed