Measures elapsed time with the monotonic std::chrono::steady_clock.
More...
#include <aegis2d/core/clock.hpp>
|
| using | Clock = std::chrono::steady_clock |
| | Clock the stopwatch reads; it never goes backwards.
|
| |
Measures elapsed time with the monotonic std::chrono::steady_clock.
◆ Clock
Clock the stopwatch reads; it never goes backwards.
◆ Stopwatch()
| aegis2d::core::Stopwatch::Stopwatch |
( |
| ) |
|
|
noexcept |
Starts measuring from now.
◆ elapsed()
| Duration aegis2d::core::Stopwatch::elapsed |
( |
| ) |
const |
|
noexcept |
Time since construction or the last restart().
- Returns
- The elapsed time.
◆ restart()
| Duration aegis2d::core::Stopwatch::restart |
( |
| ) |
|
|
noexcept |
Starts measuring again from now.
- Returns
- The time elapsed before the restart, i.e. the duration of the last frame.
The documentation for this class was generated from the following file: