Static
defaultOptional
deduplicate: booleanStart timing a section of code
Name of the section to time -- should be unique within the code base so that it can be identified later
A handle which can be used to end the timing section
Static
runRun a piece of code and time it, returning the result of the code
This takes an optional "timing" parameter which is a timing object if one exists, to update -- if this parameter is undefined no timing will be done.
Name of the section to time -- should be unique within the code base so that it can be identified later
Timing object to update, if available
The code to run
The result of the code
Deprecated
Use
endTime(section: symbol)
instead