Class: Timer

pc.Timer

A Timer counts milliseconds from when start() is called until when stop() is called.

Constructor

(private) new Timer()

Create a new Timer instance.
Source:

Methods

(private) getMilliseconds() → {Number}

Get the number of milliseconds that passed between start() and stop() being called
Source:
Returns:
The elapsed milliseconds.
Type
Number

(private) start()

Start the timer
Source:

(private) stop()

Stop the timer
Source: