Timers Object

The timers object of Brutus2D provides the ability to create up to 10 high-resolution timers. The timers measure units in seconds. It is useful for creating game timers. Notice that when you do this, the 'game timer' will be based on real-time, not loopins.

Initialization

Control

Read Elapsed Time

Notes

These functions also deal with time and dates in Brutus2D but are not part of the Timers object.

  • date() - returns current date as a string formated according to your systems regional settings for short notation.
  • time() - returns the time of day as a string formated according to your systems regional settings for short notation.
  • timer() - returns the amount of seconds passed since midnight.
page tags: object timer
page_revision: 1, last_edited: 1214668218|%e %b %Y, %H:%M %Z (%O ago)