Class: Timer

Timer()

- Class representing a Timer in ROS

Members

period :number

Type:
  • number
Source:

Methods

cancel() → {undefined}

Cancel the timer.
Source:
Returns:
Type
undefined

isCanceled() → {boolean}

Check if the timer is canceled.
Source:
Returns:
Return true if timer is canceled, otherwise return false.
Type
boolean

isReady() → {boolean}

Check if the timer is ready.
Source:
Returns:
Return true if timer is ready, otherwise return false.
Type
boolean

reset() → {undefined}

Reset the timer.
Source:
Returns:
Type
undefined

timeSinceLastCall() → {number}

Get the interval since the last call of this timer.
Source:
Returns:
- the interval value - ms.
Type
number

timeUntilNextCall() → {number}

Get the interval until the next call will happen.
Source:
Returns:
- the interval value - ms.
Type
number