OSVR-Core
Macros | Functions
TimeValueC.cpp File Reference

Implementation. More...

#include <osvr/Util/TimeValueC.h>
#include <vrpn_Shared.h>
#include <ratio>

Macros

#define OSVR_USEC_PER_SEC   std::micro::den;
 

Functions

void osvrTimeValueNormalize (OSVR_INOUT_PTR OSVR_TimeValue *tv)
 "Normalizes" a time value so that the absolute number of microseconds is less than 1,000,000, and that the sign of both components is the same. More...
 
void osvrTimeValueSum (OSVR_INOUT_PTR OSVR_TimeValue *tvA, OSVR_IN_PTR const OSVR_TimeValue *tvB)
 
void osvrTimeValueDifference (OSVR_INOUT_PTR OSVR_TimeValue *tvA, OSVR_IN_PTR const OSVR_TimeValue *tvB)
 
template<typename T >
int numcmp (T a, T b)
 
int osvrTimeValueCmp (OSVR_IN_PTR const OSVR_TimeValue *tvA, OSVR_IN_PTR const OSVR_TimeValue *tvB)
 

Detailed Description

Implementation.

Date
2014
Author
Sensics, Inc. http://sensics.com/osvr