25 using Time = std::chrono::time_point<std::chrono::high_resolution_clock>;
27 using Duration = std::chrono::duration<double>;
37 auto elapsed(Time
const& end, Time
const& begin) -> double;
42 auto elapsed(Time
const& begin) -> double;
61 auto time() const ->
double;
68 double melapsed = 0.0;
Used for measuring elapsed time since object creation.
Definition: TimeUtils.hpp:46
auto pause() -> void
Pause measuring time.
Stopwatch()
Construct a Stopwatch object and start measuring time.
auto reset() -> void
Reset the stopwatch.
auto time() const -> double
Get the accumulated elapsed time (in seconds) between calls to methods start and pause.
auto start() -> void
Start measuring time.
The namespace containing all components of the Reaktoro library.
Definition: Algorithms.hpp:29
auto time() -> Time
Return the time point now.
auto elapsed(Time const &end, Time const &begin) -> double
Return the elapsed time between two time points (in units of s)