Class: PerformanceMonitor

perf~ PerformanceMonitor


new PerformanceMonitor()

Source:

Methods


<static> addTimer( [id])

Adds a new timestamp for monitor ID 'id'

Parameters:
Name Type Argument Description
id Number <optional>

timer id, creates a unique ID if null

Source:
Returns:

id

Type
Number

<static> deleteTimer()

Deletes a monitor

Source:

<static> getTimer(id [, del])

Gets a timestamp for monitor ID 'id'

Parameters:
Name Type Argument Description
id Number

timer id

del Boolean <optional>

set to true to delete the timer

Source:
Returns:

timestamp at which the timer was set

Type
Number