timer Class Reference

Nice easy to use class to measure time. More...

#include <timer.h>

List of all members.

Public Member Functions

 timer ()
void start (const char *msg=0)
void restart (const char *msg=0)
void stop (const char *msg=0)
void check (const char *msg=0)
double elapsed_time ()

Private Attributes

bool running
clock_t start_clock
time_t start_time
double acc_time

Friends

std::ostream & operator<< (std::ostream &os, timer &t)


Detailed Description

Nice easy to use class to measure time.

Constructor & Destructor Documentation

timer::timer (  )  [inline]


Member Function Documentation

void timer::start ( const char *  msg = 0  )  [inline]

void timer::restart ( const char *  msg = 0  )  [inline]

void timer::stop ( const char *  msg = 0  )  [inline]

void timer::check ( const char *  msg = 0  )  [inline]

double timer::elapsed_time (  )  [inline]


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
timer t 
) [friend]


Member Data Documentation

bool timer::running [private]

clock_t timer::start_clock [private]

time_t timer::start_time [private]

double timer::acc_time [private]


The documentation for this class was generated from the following file:
Generated on Tue Dec 1 12:09:53 2009 for SPD FED Server by  doxygen 1.5.4