Utility class that measure the elapsed time.
More...
Utility class that measure the elapsed time.
◆ Clock()
Nz::Clock::Clock |
( |
UInt64 |
startingValue = 0 , |
|
|
bool |
paused = false |
|
) |
| |
Constructs a Clock object.
- Parameters
-
startingValue | The starting time value, in microseconds |
paused | The clock pause state |
◆ GetMicroseconds()
UInt64 Nz::Clock::GetMicroseconds |
( |
| ) |
const |
◆ GetMilliseconds()
UInt64 Nz::Clock::GetMilliseconds |
( |
| ) |
const |
◆ GetSeconds()
float Nz::Clock::GetSeconds |
( |
| ) |
const |
◆ IsPaused()
bool Nz::Clock::IsPaused |
( |
| ) |
const |
Returns the current pause state of the clock
- Returns
- Boolean indicating if the clock is currently paused
- See also
- Pause, Unpause
◆ Pause()
void Nz::Clock::Pause |
( |
| ) |
|
Pause the clock.
Pauses the clock, making the time retrieving functions to always return the value at the time the clock was paused This has no effect if the clock is already paused
- See also
- IsPaused, Unpause
◆ Unpause()
void Nz::Clock::Unpause |
( |
| ) |
|
Unpause the clock.
Unpauses the clock, making the clock continue to measure the time This has no effect if the clock is already unpaused
- See also
- IsPaused, Unpause
The documentation for this class was generated from the following files:
- include/Nazara/Core/Clock.hpp
- src/Nazara/Core/Clock.cpp