Dune Core Modules (2.7.0)
timer.hh
Go to the documentation of this file.
139 std::chrono::duration<double> time_span = std::chrono::duration_cast<std::chrono::duration<double> >(now - cstart);
void reset() noexcept
Reset timer while keeping the running/stopped state.
Definition: timer.hh:55
Timer(bool startImmediately=true) noexcept
A new timer, create and reset.
Definition: timer.hh:48
double elapsed() const noexcept
Get elapsed user-time from last reset until now/last stop in seconds.
Definition: timer.hh:75
double lastElapsed() const noexcept
Get elapsed user-time from last start until now/last stop in seconds.
Definition: timer.hh:86
void start() noexcept
Start the timer and continue measurement if it is not running. Otherwise do nothing.
Definition: timer.hh:64
|
Legal Statements / Impressum |
Hosted by TU Dresden |
generated with Hugo v0.111.3
(Nov 9, 23:30, 2024)