#include <timer.h>
List of all members.
Public Member Functions |
double | conv_ntime (const double time) const |
double | conv_ntime (const struct timeval &tv) |
double | conv_ntime (signed long long time) |
| cvd_timer () |
| Create a timer, and set the start time to be now.
|
double | get_time () |
| How many seconds have elapsed since the start time?
|
double | reset () |
| Sets the start time to the current time.
|
Private Attributes |
unsigned long long | startTime |
Detailed Description
Provides the time elapsed in seconds. This predominantly a wrapper for the system call gettimeofday(), but can also provides a convenient way of converting from other time units. In all cases, the time is given relative to the time the class was created, or the last time reset() was called.
Definition at line 44 of file timer.h.
Constructor & Destructor Documentation
CVD::cvd_timer::cvd_timer |
( |
|
) |
|
Create a timer, and set the start time to be now.
Member Function Documentation
double CVD::cvd_timer::conv_ntime |
( |
const double |
time |
) |
const [inline] |
Convert current time given as double by correcting for the start time
- Parameters:
-
| time | current time as double |
Definition at line 64 of file timer.h.
double CVD::cvd_timer::conv_ntime |
( |
const struct timeval & |
tv |
) |
|
Convert the current time from a timeval into a double, correcting for the start time
- Parameters:
-
| tv | The current time as a timeval |
double CVD::cvd_timer::conv_ntime |
( |
signed long long |
time |
) |
|
Convert the current time from units of nanoseconds into a double, correcting for the start time
- Parameters:
-
| time | The current time in nanoseconds |
double CVD::cvd_timer::get_time |
( |
|
) |
|
How many seconds have elapsed since the start time?
double CVD::cvd_timer::reset |
( |
|
) |
|
Sets the start time to the current time.
Member Data Documentation
The documentation for this class was generated from the following file:
libcvd
Author(s): Edward Rosten, Paul Smith, Tom Drummond, Gerhard Reitmayr, Ethan Eade, Timothy Gan, Chris Kemp, Georg Klein
autogenerated on Fri Jan 11 09:13:51 2013