template<typename T>
vt::runtime::component::meter::Timer struct

Diagnostic that times some operation over time.

Base classes

template<typename T>
struct DiagnosticStatsPack<T>
Pack of statistic-based diagnostics intended to back diagnostic types where basic statistics should be applied.

Constructors, destructors, conversion operators

Timer() defaulted
Default constructor available for ease of putting this type in a class. But, all valid ways to construction involve the factory methods in the Diagnostic base class for component.

Public functions

void update(] T begin, ] T end)
Add a new timer range to the timer diagnostic.
void start()
Start the timer for an event being tracked.
void stop()
Stop the timer and record the interval.
template<typename SerializerT>
void serialize(SerializerT& s)

Function documentation

template<typename T>
void vt::runtime::component::meter::Timer<T>::update(] T begin, ] T end)

Add a new timer range to the timer diagnostic.

Parameters
begin in begin time of event being tracked
end in end time of event being tracked