timer Class Reference

#include <Timer.h>

Public Member Functions

 timer ()
 timer (const timer &)
 ~timer ()
timeroperator= (const timer &)
timeroperator+= (const timer &)
timer operator+ (const timer &) const
void clear ()
void start ()
void stop ()
double usecs () const
double ssecs () const
double wsecs () const
bool is_running () const
double CYCLES_PER_SEC () const
double NANOSECS_PER_SEC () const
double MICROSECS_PER_SEC () const

Static Private Member Functions

static void get_current (double &, double &, double &)

Private Attributes

double usecs_
double ssecs_
double wsecs_
double cu_
double cs_
double cw_
unsigned activation_count_
const double CYCLES_PER_SEC_
const double MICROSECS_PER_SEC_
const double NANOSECS_PER_SEC_

Detailed Description

Definition at line 51 of file Timer.h.


Constructor & Destructor Documentation

timer::timer (  ) 

Definition at line 35 of file Timer.C.

timer::timer ( const timer t  ) 

Definition at line 48 of file Timer.C.

timer::~timer (  ) 

Definition at line 56 of file Timer.C.


Member Function Documentation

void timer::clear (  ) 

Definition at line 84 of file Timer.C.

References activation_count_, cs_, cu_, cw_, ssecs_, usecs_, and wsecs_.

Referenced by TimeStatistic::clear().

double timer::CYCLES_PER_SEC (  )  const [inline]

Definition at line 71 of file Timer.h.

Referenced by get_current().

void timer::get_current ( double &  u,
double &  s,
double &  w 
) [static, private]

Definition at line 201 of file Timer.C.

References CYCLES_PER_SEC(), gettimeofday(), and MICROSECS_PER_SEC().

Referenced by start(), and stop().

bool timer::is_running (  )  const

Definition at line 128 of file Timer.C.

References activation_count_.

Referenced by TimeStatistic::is_running().

double timer::MICROSECS_PER_SEC (  )  const [inline]

Definition at line 73 of file Timer.h.

Referenced by get_current().

double timer::NANOSECS_PER_SEC (  )  const [inline]

Definition at line 72 of file Timer.h.

timer timer::operator+ ( const timer t  )  const

Definition at line 78 of file Timer.C.

timer & timer::operator+= ( const timer t  ) 

Definition at line 69 of file Timer.C.

References ssecs_, stop(), usecs_, and wsecs_.

timer & timer::operator= ( const timer t  ) 

Definition at line 59 of file Timer.C.

References activation_count_, cs_, cu_, cw_, ssecs_, usecs_, and wsecs_.

double timer::ssecs (  )  const

Definition at line 118 of file Timer.C.

References ssecs_.

Referenced by TimeStatistic::ssecs().

void timer::start (  ) 

Definition at line 91 of file Timer.C.

References activation_count_, cs_, cu_, cw_, and get_current().

Referenced by TimeStatistic::start().

void timer::stop (  ) 

Definition at line 98 of file Timer.C.

References activation_count_, cs_, cu_, cw_, get_current(), ssecs_, usecs_, and wsecs_.

Referenced by operator+=(), and TimeStatistic::stop().

double timer::usecs (  )  const

Definition at line 113 of file Timer.C.

References usecs_.

Referenced by TimeStatistic::usecs().

double timer::wsecs (  )  const

Definition at line 123 of file Timer.C.

References wsecs_.

Referenced by TimeStatistic::wsecs().


Field Documentation

unsigned timer::activation_count_ [private]

Definition at line 87 of file Timer.h.

Referenced by clear(), is_running(), operator=(), start(), and stop().

double timer::cs_ [private]

Definition at line 86 of file Timer.h.

Referenced by clear(), operator=(), start(), and stop().

double timer::cu_ [private]

Definition at line 86 of file Timer.h.

Referenced by clear(), operator=(), start(), and stop().

double timer::cw_ [private]

Definition at line 86 of file Timer.h.

Referenced by clear(), operator=(), start(), and stop().

const double timer::CYCLES_PER_SEC_ [private]

Definition at line 89 of file Timer.h.

const double timer::MICROSECS_PER_SEC_ [private]

Definition at line 90 of file Timer.h.

const double timer::NANOSECS_PER_SEC_ [private]

Definition at line 91 of file Timer.h.

double timer::ssecs_ [private]

Definition at line 85 of file Timer.h.

Referenced by clear(), operator+=(), operator=(), ssecs(), and stop().

double timer::usecs_ [private]

Definition at line 85 of file Timer.h.

Referenced by clear(), operator+=(), operator=(), stop(), and usecs().

double timer::wsecs_ [private]

Definition at line 85 of file Timer.h.

Referenced by clear(), operator+=(), operator=(), stop(), and wsecs().


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 12 Jul 2013 for SymtabAPI by  doxygen 1.6.1