Public Member Functions | |
| StopWatch () | |
| Constructs a timer object, and immediately begins keeping track of time. | |
| StopWatch (bool autostart) | |
| Constructs a timer object. If the timer starts paused, a call to Resume() must be made for it to begin keeping track of time. | |
| void | Dispose () |
| Destroys this timer. | |
| void | Reset () |
| Resets the timer to zero. | |
| void | Pause () |
| Increments the pause counter. If the counter is greater than zero, the timer won't advance. | |
| void | Resume () |
| Decrements the pause counter. If the pause counter is zero the timer will begin advancing. | |
| void | ForceResume () |
| Sets the pause counter to zero, causing the timer to begin advancing regardless of how many calls to Pause() are made. | |
Properties | |
| double | TotalSeconds [get] |
| Returns the number of seconds since the timer started. | |
| double | TotalMilliseconds [get] |
| Returns the number of ticks (milliseconds) since the timer started. | |
| bool | IsPaused [get] |
| Gets whether or not this StopWatch is paused. | |
| ERY.AgateLib.Timing.StopWatch.StopWatch | ( | ) |
Constructs a timer object, and immediately begins keeping track of time.
| ERY.AgateLib.Timing.StopWatch.StopWatch | ( | bool | autostart | ) |
Constructs a timer object. If the timer starts paused, a call to Resume() must be made for it to begin keeping track of time.
| autostart | Pass true to immediately begin keeping track of time. False to pause the timer initially. |
| void ERY.AgateLib.Timing.StopWatch.Dispose | ( | ) |
Destroys this timer.
| void ERY.AgateLib.Timing.StopWatch.Reset | ( | ) |
Resets the timer to zero.
| void ERY.AgateLib.Timing.StopWatch.Pause | ( | ) |
Increments the pause counter. If the counter is greater than zero, the timer won't advance.
| void ERY.AgateLib.Timing.StopWatch.Resume | ( | ) |
Decrements the pause counter. If the pause counter is zero the timer will begin advancing.
| void ERY.AgateLib.Timing.StopWatch.ForceResume | ( | ) |
Sets the pause counter to zero, causing the timer to begin advancing regardless of how many calls to Pause() are made.
double ERY.AgateLib.Timing.StopWatch.TotalSeconds [get] |
Returns the number of seconds since the timer started.
double ERY.AgateLib.Timing.StopWatch.TotalMilliseconds [get] |
Returns the number of ticks (milliseconds) since the timer started.
bool ERY.AgateLib.Timing.StopWatch.IsPaused [get] |
Gets whether or not this StopWatch is paused.
|
AgateLib Awesome Game and Tool Engine Library |
|