#include <basic_types.h>
Public Member Functions | |
| Timeval (void) | |
| Timeval (const timeval_t &ts) | |
| Timeval (const struct timespec &ts) | |
| Timeval (double seconds) | |
| Timeval (const Timeval &rhs) | |
| bool | operator== (const Timeval &rhs) const |
| bool | operator< (const Timeval &rhs) const |
| bool | operator<= (const Timeval &rhs) const |
| bool | operator> (const Timeval &rhs) const |
| bool | operator>= (const Timeval &rhs) const |
| Timeval & | operator-= (const Timeval &rhs) throw ( ArithmeticUnderflowException ) |
| Timeval | operator- (const Timeval &rhs) const throw ( ArithmeticUnderflowException ) |
| Timeval & | operator+= (const Timeval &rhs) throw ( ArithmeticOverflowException ) |
| Timeval | operator+ (const Timeval &rhs) const throw ( ArithmeticOverflowException ) |
| double | getDoubleValue (void) const |
| return the value of the timestamp in epoch-seconds as a double | |
| operator double () const | |
Protected Attributes | |
| timespec | timestamp |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const Timeval &time) |
profile_streams_thesis.cc, test_harness.cc, and test_hist.cc.
|
|
default constructor initializes to current time |
|
|
initialize from the given struct timeval |
|
|
initialize from the given struct timespec |
|
|
initialize from the given number of seconds
|
|
|
copy c-tor |
|
|
true if the left timestamp is before the right timestamp |
|
|
true if the left timestamp is before or equal to the right timestamp |
|
|
true if the timestamps are equal, to the smallest resolution supported |
|
|
true if the left timestamp is after the right timestamp |
|
|
true if the left timestamp is after or equal to the right timestamp |
1.4.2