Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Friends | List of all members
STimer Class Reference

#include <stattimer.hpp>

+ Collaboration diagram for STimer:

Public Member Functions

 STimer ()
 
 ~STimer ()
 

Protected Member Functions

void calcStat (STimerRecords &rec) const
 
void initTimeBuf (int len)
 
void registerTime (double delta)
 
std::string report (STimerReporterFunc fn=NULL) const
 
void setId (int i)
 
void setLabel (std::string l)
 
void setReporterFunc (STimerReporterFunc f)
 
void start ()
 
void start (double start_count_value)
 
double stop ()
 

Static Protected Member Functions

static double tickCount ()
 
static double tickPeriod ()
 

Protected Attributes

double dmax
 
double dmin
 
double dsqrsum
 
double dsum
 
int id
 
int idx_timebuf
 
bool is_recording
 
std::string label
 
int nsample
 
STimerReporterFunc reporter_func
 
double start_count
 
std::vector< double > timebuf
 

Friends

class STimerList_< STimer >
 

Detailed Description

Class for a single timer. This is used by STimerList class and will not be used by a user directly.

Definition at line 87 of file stattimer.hpp.

Constructor & Destructor Documentation

§ STimer()

STimer::STimer ( )
inline

Definition at line 90 of file stattimer.hpp.

§ ~STimer()

STimer::~STimer ( )
inline

Definition at line 93 of file stattimer.hpp.

Member Function Documentation

§ calcStat()

void STimer::calcStat ( STimerRecords rec) const
inlineprotected

Definition at line 146 of file stattimer.hpp.

§ initTimeBuf()

void STimer::initTimeBuf ( int  len)
inlineprotected

Definition at line 179 of file stattimer.hpp.

§ registerTime()

void STimer::registerTime ( double  delta)
inlineprotected

Definition at line 109 of file stattimer.hpp.

§ report()

std::string STimer::report ( STimerReporterFunc  fn = NULL) const
inlineprotected

Definition at line 134 of file stattimer.hpp.

§ setId()

void STimer::setId ( int  i)
inlineprotected

Definition at line 183 of file stattimer.hpp.

§ setLabel()

void STimer::setLabel ( std::string  l)
inlineprotected

Definition at line 173 of file stattimer.hpp.

§ setReporterFunc()

void STimer::setReporterFunc ( STimerReporterFunc  f)
inlineprotected

Definition at line 176 of file stattimer.hpp.

§ start() [1/2]

void STimer::start ( )
inlineprotected

Definition at line 95 of file stattimer.hpp.

§ start() [2/2]

void STimer::start ( double  start_count_value)
inlineprotected

Definition at line 99 of file stattimer.hpp.

§ stop()

double STimer::stop ( )
inlineprotected

Definition at line 103 of file stattimer.hpp.

§ tickCount()

double STimer::tickCount ( )
inlinestaticprotected

Definition at line 658 of file stattimer.hpp.

§ tickPeriod()

double STimer::tickPeriod ( )
inlinestaticprotected

Definition at line 664 of file stattimer.hpp.

Friends And Related Function Documentation

§ STimerList_< STimer >

friend class STimerList_< STimer >
friend

Definition at line 88 of file stattimer.hpp.

Member Data Documentation

§ dmax

double STimer::dmax
protected

Definition at line 194 of file stattimer.hpp.

§ dmin

double STimer::dmin
protected

Definition at line 195 of file stattimer.hpp.

§ dsqrsum

double STimer::dsqrsum
protected

Definition at line 193 of file stattimer.hpp.

§ dsum

double STimer::dsum
protected

Definition at line 192 of file stattimer.hpp.

§ id

int STimer::id
protected

Definition at line 189 of file stattimer.hpp.

§ idx_timebuf

int STimer::idx_timebuf
protected

Definition at line 197 of file stattimer.hpp.

§ is_recording

bool STimer::is_recording
protected

Definition at line 198 of file stattimer.hpp.

§ label

std::string STimer::label
protected

Definition at line 199 of file stattimer.hpp.

§ nsample

int STimer::nsample
protected

Definition at line 191 of file stattimer.hpp.

§ reporter_func

STimerReporterFunc STimer::reporter_func
protected

Definition at line 200 of file stattimer.hpp.

§ start_count

double STimer::start_count
protected

Definition at line 190 of file stattimer.hpp.

§ timebuf

std::vector<double> STimer::timebuf
protected

Definition at line 196 of file stattimer.hpp.


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