Timer::Time Class Reference

User, system and wall clock time convenient interface. More...

List of all members.

Public Member Functions

 Time ()
 Initially set to 0.
void set_to_now ()
 Set to the current time.
void clear ()
 Reset to 0.
bool operator< (const Time &rhs) const
 Comparison between two Times.
Comparison to 0.
Whether a field is not null.

 operator bool () const
bool operator! () const
 Whether all fields are null.
Arithmetics.
Accumulate rhs into this.

Timeoperator+= (const Time &rhs)
Time operator+ (const Time &rhs) const
 Return the sum of this and rhs.
Timeoperator-= (const Time &rhs)
 Subtract rhs from this.
Time operator- (const Time &rhs) const
 Return the subtraction of this and rhs.
Timeoperator/= (unsigned n)
 Divide times in place by n.
Time operator/ (unsigned n) const
 Return the division of this and n.

Static Public Member Functions

static Time now ()
 Return the time now.

Friends

class Bencher
class Timer
class Timer::TimeVar


Detailed Description

User, system and wall clock time convenient interface.

Definition at line 132 of file timer.hh.


Member Function Documentation

bool operator< ( const Time rhs  )  const [inline]

Comparison between two Times.

This operators enables the use of std::min and std::max. It check only the total time, so it's a strict weak ordering.

Definition at line 194 of file timer.hxx.

References Timer::Time::sys, Timer::Time::user, and Timer::Time::wall.


Generated on Wed Jun 13 17:03:19 2007 for Vaucanson by  doxygen 1.5.1