A base timer class for the different timers.
More...
#include <timer.h>
|
| virtual void | Update () |
| | Updates all the timings in this timer. More...
|
| |
A base timer class for the different timers.
Definition at line 53 of file timer.h.
The style of timer to be used.
| Enumerator |
|---|
| Normal |
Counts up forever, ignoring any goal and autoreset.
|
| StopWatch |
Counts down, respecting any goal and autoreset.
|
| Alarm |
Counts up, respecting any goal and autoreset.
|
Definition at line 57 of file timer.h.
| Mezzanine::Timer::Timer |
( |
) | |
|
Standard Constructor.
- Parameters
-
| Style | The styling/type of timer to be constructed. |
Definition at line 48 of file timer.cpp.
| Whole Mezzanine::Timer::GetCurrentTime |
( |
) | |
|
|
virtual |
Gets the Current time in Microseconds.
- Returns
- Returns a Whole representing the current time in Microseconds.
Definition at line 75 of file timer.cpp.
| Whole Mezzanine::Timer::GetCurrentTimeInMilliseconds |
( |
) | |
|
|
virtual |
Gets the Current time in Milliseconds.
- Returns
- Returns a Whole representing the current time in Milliseconds.
Definition at line 78 of file timer.cpp.
| Whole Mezzanine::Timer::GetInitialTime |
( |
) | |
const |
|
virtual |
Gets the Initial time in Microseconds.
- Returns
- Returns a Whole representing the initial time in Microseconds.
Definition at line 87 of file timer.cpp.
| Whole Mezzanine::Timer::GetInitialTimeInMilliseconds |
( |
) | |
const |
|
virtual |
Gets the Initial time in Milliseconds.
- Returns
- Returns a Whole representing the initial time in Milliseconds.
Definition at line 90 of file timer.cpp.
| bool Mezzanine::Timer::IsStopped |
( |
) | |
|
|
virtual |
Gets Whether or not this timer is currently running.
- Returns
- Returns true if this timer is not currently active, false otherwise.
Definition at line 107 of file timer.cpp.
| void Mezzanine::Timer::SetCurrentTime |
( |
const Whole |
Current) | |
|
|
virtual |
Sets the current time in Microseconds.
- Returns
- Returns a reference to this timer.
- Parameters
-
| Current | The value to set as current time in Microseconds. |
Definition at line 69 of file timer.cpp.
| void Mezzanine::Timer::SetCurrentTimeInMilliseconds |
( |
const Whole |
Current) | |
|
|
virtual |
Sets the current time in Milliseconds. The time that resetting sets the timer to.
- Returns
- Returns a reference to this timer.
- Parameters
-
| Current | The value to set as current time in Milliseconds. |
Definition at line 72 of file timer.cpp.
| void Mezzanine::Timer::SetInitialTime |
( |
const Whole |
Initial) | |
|
|
virtual |
Sets the initial time in Microseconds. The time that resetting sets the timer to.
- Returns
- Returns a reference to this timer.
- Parameters
-
| Initial | The value to set as initial time in Microseconds. |
Definition at line 81 of file timer.cpp.
| void Mezzanine::Timer::SetInitialTimeInMilliseconds |
( |
const Whole |
Initial) | |
|
|
virtual |
Sets the initial time in Milliseconds. The time that resetting sets the timer to.
- Returns
- Returns a reference to this timer.
- Parameters
-
| Initial | The value to set as initial time in Milliseconds. |
Definition at line 84 of file timer.cpp.
| void Mezzanine::Timer::Update |
( |
) | |
|
|
protectedvirtual |
| MaxInt Mezzanine::Timer::CurrentTime |
|
protected |
The current amount of microseconds that has elapsed since starting to track time.
Definition at line 69 of file timer.h.
| MaxInt Mezzanine::Timer::InitialTime |
|
protected |
The amount of microseconds elapsed that is considered the starting point for tracking time.
Definition at line 72 of file timer.h.
| MaxInt Mezzanine::Timer::StartStamp |
|
protected |
The time stamp from when the timer first started tracking time.
Definition at line 66 of file timer.h.
The documentation for this class was generated from the following files:
- /home/sqeaky/Code/Mezzanine/Mezzanine/src/timer.h
- /home/sqeaky/Code/Mezzanine/Mezzanine/src/timer.cpp