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.
Public Member Functions | Private Attributes | List of all members
CVD::cvd_timer Class Reference

#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
 

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.

Definition at line 41 of file cvd_timer.cpp.

Member Function Documentation

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
timeThe 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

Parameters
tvThe current time as a timeval

Definition at line 70 of file cvd_timer.cpp.

double CVD::cvd_timer::conv_ntime ( const double  time) const
inline

Convert current time given as double by correcting for the start time

Parameters
timecurrent time as double

Definition at line 64 of file timer.h.

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.

Member Data Documentation

unsigned long long CVD::cvd_timer::startTime
private

Definition at line 73 of file timer.h.


The documentation for this class was generated from the following files: