Struct stopwatch¶
struct stopwatch runtime¶
struct stopwatch { … } RAII-style stopwatch measuring wall-clock elapsed time via clock_now .
variable start_time ¶
uint64_t start_time Tick count captured at construction.
Fully qualified name: kfr::stopwatch::start_time
Declared at runtime/time.hpp:360
variable frequency ¶
uint64_t frequency Tick frequency of the underlying clock, captured at construction.
Fully qualified name: kfr::stopwatch::frequency
Declared at runtime/time.hpp:362
constructor stopwatch() ¶
stopwatch() Fully qualified name: kfr::stopwatch::stopwatch()
Declared at runtime/time.hpp:363
function elapsed_s() ¶
double elapsed_s() const noexcept Return the elapsed wall-clock time in seconds since construction.
Fully qualified name: kfr::stopwatch::elapsed_s()
Declared at runtime/time.hpp:366
function elapsed() ¶
template <typename Duration>
Duration elapsed() const noexcept Return the elapsed time since construction cast to the requested Duration type.
| Duration | A std::chrono duration type (e.g. std::chrono::milliseconds). |
Fully qualified name: kfr::stopwatch::elapsed()
Declared at runtime/time.hpp:375
function elapsed_ns() ¶
std::chrono::nanoseconds elapsed_ns() const noexcept Convenience wrapper for elapsed returning nanoseconds.
Fully qualified name: kfr::stopwatch::elapsed_ns()
Declared at runtime/time.hpp:382
function elapsed_us() ¶
std::chrono::microseconds elapsed_us() const noexcept Convenience wrapper for elapsed returning microseconds.
Fully qualified name: kfr::stopwatch::elapsed_us()
Declared at runtime/time.hpp:384
function elapsed_ms() ¶
std::chrono::milliseconds elapsed_ms() const noexcept Convenience wrapper for elapsed returning milliseconds.
Fully qualified name: kfr::stopwatch::elapsed_ms()
Declared at runtime/time.hpp:386
Fully qualified name: kfr::stopwatch
Declared at runtime/time.hpp:357