Callback object returned by ICounters.beginTiming to end timing of execution block and update the associated counter.
let timing = counters.beginTiming("mymethod.exec_time"); try { ... } finally { timing.endTiming(); }
Creates a new instance of the timing callback object.
an associated counter name
a callback that shall be called when endTiming is called.
Ends timing of an execution block, calculates elapsed time and updates the associated counter.
Generated using TypeDoc
Callback object returned by ICounters.beginTiming to end timing of execution block and update the associated counter.
Example
let timing = counters.beginTiming("mymethod.exec_time"); try { ... } finally { timing.endTiming(); }