TimerAction

DebugActions. TimerAction

An action 'timer' that is used to record time between 2 points, only 1 timer is supported at a time If another timer is running when a new one is to be started, the old timer is stopped first. When the timer is stopped, the duration is debugged into the console

Constructor

new TimerAction()

Source:
Examples
// Stats a timer, and names it "myTimerName"
{
    "timer": {
        "name": "myTimerName"
    }
}
// Stats a timer, and names it "myTimerName", shorthand
{
    "timer": "myTimerName"
}