Public Member Functions | Private Attributes

wall_clock Class Reference
[Wall_clock]

Class for measuring time intervals. More...

#include <wall_clock_proto.hpp>

List of all members.

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

Detailed Description

Class for measuring time intervals.

Definition at line 22 of file wall_clock_proto.hpp.


Member Data Documentation

bool wall_clock::valid [private]

Definition at line 35 of file wall_clock_proto.hpp.

Referenced by tic(), and toc().

boost::posix_time::ptime wall_clock::boost_time1 [private]

Definition at line 38 of file wall_clock_proto.hpp.

Referenced by tic(), and toc().

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 [private]

Definition at line 42 of file wall_clock_proto.hpp.

Referenced by tic(), and toc().

struct timeval wall_clock::posix_time2 [private]

Definition at line 43 of file wall_clock_proto.hpp.

Referenced by toc().