Tree Compression with Top Trees Revisited
Public Member Functions | List of all members
TimerT< TimeT, scalingFactor, ReturnType > Struct Template Reference

A flexible timer. More...

#include <Timer.h>

Public Member Functions

 TimerT ()
 
void reset ()
 
ReturnType get () const
 
ReturnType getAndReset ()
 

Detailed Description

template<typename TimeT = std::chrono::microseconds, int scalingFactor = 1000, typename ReturnType = double>
struct TimerT< TimeT, scalingFactor, ReturnType >

A flexible timer.

A flexible timer.

TimeT is the precision of the timing, while scalingFactor is the factor by which the output will be scaled. The default is to print return milliseconds with microsecond precision.

Definition at line 14 of file Timer.h.

Constructor & Destructor Documentation

template<typename TimeT = std::chrono::microseconds, int scalingFactor = 1000, typename ReturnType = double>
TimerT< TimeT, scalingFactor, ReturnType >::TimerT ( )
inline

Definition at line 15 of file Timer.h.

Member Function Documentation

template<typename TimeT = std::chrono::microseconds, int scalingFactor = 1000, typename ReturnType = double>
ReturnType TimerT< TimeT, scalingFactor, ReturnType >::get ( ) const
inline

Definition at line 23 of file Timer.h.

template<typename TimeT = std::chrono::microseconds, int scalingFactor = 1000, typename ReturnType = double>
ReturnType TimerT< TimeT, scalingFactor, ReturnType >::getAndReset ( )
inline

Definition at line 29 of file Timer.h.

template<typename TimeT = std::chrono::microseconds, int scalingFactor = 1000, typename ReturnType = double>
void TimerT< TimeT, scalingFactor, ReturnType >::reset ( )
inline

Definition at line 19 of file Timer.h.


The documentation for this struct was generated from the following file: