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.  | |
| Time & | operator+= (const Time &rhs) | 
| Time | operator+ (const Time &rhs) const | 
| Return the sum of this and rhs.  | |
| Time & | operator-= (const Time &rhs) | 
Subtract rhs from this.  | |
| Time | operator- (const Time &rhs) const | 
| Return the subtraction of this and rhs.  | |
| Time & | operator/= (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 | 
Definition at line 132 of file timer.hh.
| 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.
 1.5.1