Quantum 3
3.0.9
The Quantum graph timer to measure time with a stopwatch. More...
Public Types | |
| enum | EState |
| The state of the timer. More... | |
Public Member Functions | |
| QuantumGraphTimer () | |
| Create a new timer. More... | |
| QuantumGraphTimer (int id, string name) | |
| Create a new timer with an id and a name. More... | |
| QuantumGraphTimer (string name) | |
| Create a new timer with a name. More... | |
| void | Combine (QuantumGraphTimer other) |
| Combine the timer with another timer. More... | |
| float | GetLastMilliseconds () |
| Get the milliseconds measured of the last update. More... | |
| float | GetLastSeconds () |
| Get the seconds measured of the last update. More... | |
| float | GetPeakMilliseconds () |
| Get the peak milliseconds measured. More... | |
| float | GetPeakSeconds () |
| Get the peak seconds measured. More... | |
| float | GetRecentMilliseconds () |
| Get the recent time in milliseconds since the last start. More... | |
| float | GetRecentSeconds () |
| Get the recent time in seconds since the last start. More... | |
| float | GetTotalMilliseconds () |
| Get the total time in milliseconds. More... | |
| float | GetTotalSeconds () |
| Get the total time in seconds. More... | |
| void | Pause () |
| Pause the timer. More... | |
| void | Reset () |
| Reset the timer. More... | |
| void | Restart () |
| Restart the timer. More... | |
| void | Return () |
| Return the timer to the pool. More... | |
| void | Start () |
| Start the timer. More... | |
| void | Stop () |
| Stop the timer. More... | |
Static Public Member Functions | |
| static QuantumGraphTimer | Get (bool start=false) |
| Create a new timer or get one from the pool. More... | |
| static void | Return (QuantumGraphTimer timer) |
| Return the timer object to the pool. More... | |
Public Attributes | |
| readonly int | ID |
| The time id More... | |
| readonly string | Name |
| The time name More... | |
Properties | |
| int | Counter [get] |
| Counts how many time the timer has been updated. More... | |
| TimeSpan | LastTime [get] |
| The time in the last update. More... | |
| TimeSpan | PeakTime [get] |
| The peak time measured. More... | |
| TimeSpan | RecentTime [get] |
| The time after the last start. More... | |
| EState | State [get] |
| Returns the timer state. More... | |
| TimeSpan | TotalTime [get] |
| The total accumulated time. More... | |
The Quantum graph timer to measure time with a stopwatch.
|
strong |
|
inline |
Create a new timer.
|
inline |
Create a new timer with a name.
| name | Name |
|
inline |
Create a new timer with an id and a name.
| id | Timer id |
| name | Timer name |
|
inline |
Start the timer.
|
inline |
Pause the timer.
|
inline |
Stop the timer.
|
inline |
Restart the timer.
|
inline |
Reset the timer.
|
inline |
Return the timer to the pool.
|
inline |
Combine the timer with another timer.
| other | Other timer |
|
inline |
Get the total time in seconds.
|
inline |
Get the total time in milliseconds.
|
inline |
Get the recent time in seconds since the last start.
|
inline |
Get the recent time in milliseconds since the last start.
|
inline |
Get the peak seconds measured.
|
inline |
Get the peak milliseconds measured.
|
inline |
Get the seconds measured of the last update.
|
inline |
Get the milliseconds measured of the last update.
|
inlinestatic |
Create a new timer or get one from the pool.
| start | Set true to automatically start the timer. |
|
inlinestatic |
Return the timer object to the pool.
| timer | Timer |
| readonly int Quantum.Profiling.QuantumGraphTimer.ID |
The time id
| readonly string Quantum.Profiling.QuantumGraphTimer.Name |
The time name
|
get |
Returns the timer state.
|
get |
Counts how many time the timer has been updated.
|
get |
The total accumulated time.
|
get |
The time after the last start.
|
get |
The peak time measured.
|
get |
The time in the last update.