#include <ticktimer.h>
Inheritance diagram for TickTimer:

Public Member Functions | |
| TickTimer () | |
| Constructor. Counting starts at zero. | |
| void | Reset () |
| Set the timer back to zero. | |
| Sint32 | Left (Sint32 time) |
| Returns amount of time left in interval, or zero if none. | |
| Sint32 | Ticks () |
| Returns the time since last reset. | |
| operator Sint32 () | |
| Makes it act like an integer representing time since last reset. | |
| TickTimer & | operator-= (Sint32 offset) |
| Decrements stopwatch, aka increases lasttick. | |
Protected Member Functions | |
| virtual Sint32 | GetCurTime () |
| Overloadable function to get time reference. | |
Protected Attributes | |
| Sint32 | lasttick |
| The starting point, aka reference time. | |
Definition at line 41 of file ticktimer.h.
|
|
Used to time an interval. For example, you could do something like while((timer.Left(1000))>0)) to wait until one second had expired since the timer's last Reset(). Definition at line 58 of file ticktimer.h. References Ticks(). |
Here is the call graph for this function:

1.3.4