libyggdrasil
v1.0.0
|
Profile counter implementation for Midgard. More...
#include <timer.hpp>
Public Member Functions | |
ALWAYS_INLINE void | start () const noexcept |
Start the counter. More... | |
ALWAYS_INLINE void | stop () const noexcept |
Stop the counter. More... | |
ALWAYS_INLINE void | reset () const noexcept |
Reset the counter to 0. More... | |
u64 | getTimeToOverflow () const noexcept |
Get the time to an overflow. More... | |
std::string | getFormattedTimeToOverflow () const noexcept |
Get the time to an overflow. More... | |
u64 | getPassedTime () const noexcept |
Get the time passed time since the start. More... | |
std::string | getFormattedPassedTime () const noexcept |
Get the time passed time since the start. More... | |
std::string | formatToString (u64 passedTime) const noexcept |
Formats the passed time in ns to a string. More... | |
Profile counter implementation for Midgard.
|
inlinenoexcept |
Formats the passed time in ns to a string.
passedTime | Passed time in nanoseconds |
|
inlinenoexcept |
Get the time passed time since the start.
|
inlinenoexcept |
Get the time to an overflow.
|
inlinenoexcept |
Get the time passed time since the start.
|
inlinenoexcept |
Get the time to an overflow.
|
inlinenoexcept |
Reset the counter to 0.
|
inlinenoexcept |
Start the counter.
|
inlinenoexcept |
Stop the counter.