Version: v0.7.0 - Beta.  We welcome contributors & feedback.

Perf.stop

Perf.stop() -> number

Description

Stop the most recently started Perf task.

Results are captured in the Perf Panel.

Returns the duration of the task in milliseconds (1/1000 second) if the Perf Panel is turned on.

Perf.start('myTask')

doSomeTask()

Perf.stop()
//= 1.48