Class Timer

Inheritance Relationships

Derived Type

Class Documentation

class Timer

Subclassed by marian::timer::AutoTimer

Public Functions

Timer()
void start()
void stop()
bool stopped() const
template<class Duration = std::chrono::seconds>
double elapsed() const
virtual ~Timer()

Protected Types

using clock = std::chrono::steady_clock
using time_point = std::chrono::time_point<clock>
using duration = std::chrono::nanoseconds

Protected Attributes

time_point start_
bool stopped_ = {false}
duration time_