|
⏱️ golxzn::os::chrono ⏱️ 1.2.4
Chrono for golxzn's projects.
|
Class that represents clock.In comparison with golxzn::os::chrono::fast_clock, it provides more functionality but it's slower. More...
#include <clock.hpp>
Public Member Functions | |
| bool | running () const noexcept |
| Returns true if clock is running. | |
| time | elapsed () const noexcept |
| Returns elapsed time since last reset or construction. | |
| time | restart () noexcept |
| Restarts clock. | |
| time | reset () noexcept |
| Resets clock. | |
| void | start () noexcept |
| Starts clock. | |
| void | stop () noexcept |
| Stops clock. | |
Class that represents clock.
In comparison with golxzn::os::chrono::fast_clock, it provides more functionality but it's slower.
| BaseClock | clock that will be used for measurement. It has to be monotonic and STL compatible. |
|
noexcept |
Returns elapsed time since last reset or construction.
|
noexcept |
Resets clock.
|
noexcept |
Restarts clock.
|
noexcept |
Returns true if clock is running.
|
noexcept |
Starts clock.
|
noexcept |
Stops clock.