faunus
Public Member Functions | List of all members
Faunus::TimeRelativeOfTotal< Tunit > Class Template Reference

Timer for measuring relative time consumption. More...

#include <timers.h>

Public Member Functions

 operator bool () const
 
void start ()
 
void stop ()
 
double result () const
 

Detailed Description

template<typename Tunit = std::chrono::microseconds>
class Faunus::TimeRelativeOfTotal< Tunit >

Timer for measuring relative time consumption.

Time t=0 is set upon construction whereafter combined start()/ stop() calls can be made multiple times. The result is the fraction of total time, consumed in between start/stop calls.


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