TimerStats
Class in Zigurous.Architecture
Declaration
[Serializable]
public sealed class TimerStats
Description
The running stats for a timer.
Properties
elapsedTime | The amount of seconds elapsed since the timer was started. |
elapsedTimeSinceLastTick | The amount of seconds elapsed since the last tick interval. |
elapsedTimeSinceLastCompletion | The amount of seconds elapsed since the last completion. |
timeOfLastTick | The timestamp of the last tick event. |
timeOfLastCompletion | The timestamp of the last completion event. |
timesTicked | The number of times the timer has ticked. |
timesCompleted | The number of times the timer has completed. |
Methods
IncrementTick | Increments the number of times ticked and timestamps it. |
IncrementCompletion | Increments the number of times completed and timestamps it. |
Reset | Resets all timer stats. |
ResetElapsedTime | Resets the amount of time elapsed. |
ResetCounters | Resets the timer counters, i.e., the number of times ticked, the number of times completed, and the timestamps of those events. |