Class logger::Duration

class Duration

Public Functions

Duration(DurationTree *duration_tree, int depth, Severity severity, char const *file, int line, char const *name)
bool stop()

Set stop_, decrement DurationTree::current_depth_. Return true iff this Duration represents the root timer (see docs).

template<typename Units = std::chrono::milliseconds>
Units::rep relative_start_time() const
template<typename Units = std::chrono::milliseconds>
Units::rep value() const

Public Members

int const depth_
Severity const severity_
char const *const file_
int const line_
char const *const name_

Private Members

DurationTree *const duration_tree_
Clock::time_point const start_
Clock::time_point stop_