acl/core/scope_profiler.h¶
#include "acl/core/scope_profiler.h"
A timer that measures the time of a scope.
scope_profiler¶
class scope_profiler
A scope activated profiler.
scope_profiler::scope_profiler¶
scope_profiler()
Creates and starts a scope profiler and automatically starts it.
scope_profiler::~scope_profiler¶
~scope_profiler() = default
Destroys a scope profiler and automatically stops it.
scope_profiler::stop¶
scope_profiler& stop()
Manually stops the profiler.
scope_profiler::is_stopped¶
bool is_stopped() const
Returns whether the profiler has been stopped or not.
scope_profiler::get_elapsed_time¶
std::chrono::nanoseconds get_elapsed_time() const
Returns the elapsed time in nanoseconds since the profiler was started.
scope_profiler::get_elapsed_microseconds¶
double get_elapsed_microseconds() const
Returns the elapsed time in microseconds since the profiler was started.
scope_profiler::get_elapsed_milliseconds¶
double get_elapsed_milliseconds() const
Returns the elapsed time in milliseconds since the profiler was started.
scope_profiler::get_elapsed_seconds¶
double get_elapsed_seconds() const
Returns the elapsed time in seconds since the profiler was started.