Class for measuring time intervals. More...
#include <wall_clock_proto.hpp>
Public Member Functions | |
| wall_clock () | |
| ~wall_clock () | |
| void | tic () |
| start the timer | |
| double | toc () |
| return the number of seconds since the last call to tic() | |
Private Attributes | |
| bool | valid |
| boost::posix_time::ptime | boost_time1 |
| boost::posix_time::time_duration | boost_duration |
| struct timeval | posix_time1 |
| struct timeval | posix_time2 |
Class for measuring time intervals.
Definition at line 22 of file wall_clock_proto.hpp.
bool wall_clock::valid [private] |
Definition at line 35 of file wall_clock_proto.hpp.
boost::posix_time::ptime wall_clock::boost_time1 [private] |
Definition at line 38 of file wall_clock_proto.hpp.
boost::posix_time::time_duration wall_clock::boost_duration [private] |
Definition at line 39 of file wall_clock_proto.hpp.
Referenced by toc().
struct timeval wall_clock::posix_time1 [read, private] |
Definition at line 42 of file wall_clock_proto.hpp.
struct timeval wall_clock::posix_time2 [read, private] |
Definition at line 43 of file wall_clock_proto.hpp.
Referenced by toc().