SLAMflex SE
0.1.0
SLAMflex provides detection and tracking of dominant planes for smartphone devices. This plane can then be used to show AR content relative to the plane orientation. The detection of plane is performed in the field of view of the smartphone camera. In subsequent frames it is tracked. The interface returns the plane position and orientation.
|
#include <timer.h>
Public Member Functions | |
cvd_timer () | |
Create a timer, and set the start time to be now. More... | |
double | get_time () |
How many seconds have elapsed since the start time? More... | |
double | conv_ntime (signed long long time) |
double | conv_ntime (const struct timeval &tv) |
double | conv_ntime (const double time) const |
double | reset () |
Sets the start time to the current time. More... | |
Private Attributes | |
unsigned long long | startTime |
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.
CVD::cvd_timer::cvd_timer | ( | ) |
Create a timer, and set the start time to be now.
Definition at line 41 of file cvd_timer.cpp.
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
time | The current time in nanoseconds |
Definition at line 60 of file cvd_timer.cpp.
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
tv | The current time as a timeval |
Definition at line 70 of file cvd_timer.cpp.
|
inline |
double CVD::cvd_timer::get_time | ( | ) |
How many seconds have elapsed since the start time?
Definition at line 54 of file cvd_timer.cpp.
double CVD::cvd_timer::reset | ( | ) |
Sets the start time to the current time.
Definition at line 46 of file cvd_timer.cpp.