Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

TimeStamp Class Reference
[Miscellaneous Tools]

#include <lemon/time_measure.h>

List of all members.


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 Timer class is what you want to use instead.

Author:
Alpar Juttner

Definition at line 51 of file time_measure.h.

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.
TimeStampoperator+= (const TimeStamp &b)
 
TimeStamp operator+ (const TimeStamp &b) const
 
TimeStampoperator-= (const TimeStamp &b)
 
TimeStamp operator- (const TimeStamp &b) const
 
TimeStamp ellapsed () const
 The time ellapsed since the last call of stamp().
double getUserTime () const
 Gives back the user time of the process.
double getSystemTime () const
 Gives back the system time of the process.
double getCUserTime () const
 Gives back the user time of the process' children.
double getCSystemTime () const
 Gives back the user time of the process' children.
double getRealTime () const
 Gives back the real time of the process.

Friends

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


The documentation for this class was generated from the following file:
Generated on Sat Mar 19 10:58:55 2005 for LEMON by  doxygen 1.4.1