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
- timers.Initialize - start the timers object
- timers.Create() - creates a new timer
- There is no terminate method
Control
- timers.Start - starts a timer going
- timers.Hold - pauses a timer
- timers.Reset - resets a timer to zero
Read Elapsed Time
- timers.SplitTime() - returns time elapsed since last call to SplitTime
- timers.AppTime() - returns time elapsed since timer started
- timers.SysTime() - returns the system's time since powerup
Notes
These functions also deal with time and dates in Brutus2D but are not part of the Timers object.
page_revision: 1, last_edited: 1214668218|%e %b %Y, %H:%M %Z (%O ago)