TimeStamp Class Reference
[Time measuring and Counting]


Detailed Description

This class stores five time values.

TimeStamp's can be added to or substracted from each other and they can be pushed to a stream.

In most cases, perhaps the Timer or the TimeReport class is what you want to use instead.

Author:
Alpar Juttner
#include <lemon/time_measure.h>

List of all members.

Public Member Functions

void stamp ()
 Read the current time values of the process.
 TimeStamp ()
 Constructor initializing with zero.
 TimeStamp (void *)
 Constructor initializing with the current time values of the process.
TimeStampreset ()
 Set every time value to zero.
TimeStampoperator+= (const TimeStamp &b)
 
TimeStamp operator+ (const TimeStamp &b) const
 
TimeStampoperator-= (const TimeStamp &b)
 
TimeStamp operator- (const TimeStamp &b) const
 
TimeStampoperator*= (double b)
 
TimeStamp operator* (double b) const
 
TimeStampoperator/= (double b)
 
TimeStamp operator/ (double b) const
 
TimeStamp ellapsed () const
 The time ellapsed since the last call of stamp().
double userTime () const
 Gives back the user time of the process.
double systemTime () const
 Gives back the system time of the process.
double cUserTime () const
 Gives back the user time of the process' children.
double cSystemTime () const
 Gives back the user time of the process' children.
double realTime () const
 Gives back the real time.

Friends

std::ostream & operator<< (std::ostream &os, const TimeStamp &t)
 Prints the time counters.


Generated on Thu Jun 4 04:06:41 2009 for LEMON by  doxygen 1.5.9