Main Page | Modules | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

spot::timer Class Reference
[Miscellaneous helper algorithms]

A timekeeper that accumulate interval of time. More...

#include <misc/timer.hh>

Collaboration diagram for spot::timer:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void start ()
 Start a time interval.
void stop ()
 Stop a time interval and update the sum of all intervals.
clock_t utime () const
 Return the user time of all accumulated interval.
clock_t stime () const
 Return the system time of all accumulated interval.

Protected Attributes

time_info start_
time_info total_

Detailed Description

A timekeeper that accumulate interval of time.


Member Function Documentation

void spot::timer::start  )  [inline]
 

Start a time interval.

clock_t spot::timer::stime  )  const [inline]
 

Return the system time of all accumulated interval.

Any time interval that has been start()ed but not stop()ed will not be accounted for.

void spot::timer::stop  )  [inline]
 

Stop a time interval and update the sum of all intervals.

clock_t spot::timer::utime  )  const [inline]
 

Return the user time of all accumulated interval.

Any time interval that has been start()ed but not stop()ed will not be accounted for.


Member Data Documentation

time_info spot::timer::start_ [protected]
 

time_info spot::timer::total_ [protected]
 


The documentation for this class was generated from the following file:
Please comment this page and report errors about it on the RefDocComments page.
Generated on Mon Jan 31 12:55:28 2005 for spot by doxygen 1.4.0