MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / osvrTimeValueDifference

Function osvrTimeValueDifference

src/osvr/Util/TimeValueC.cpp:73–81  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

71}
72
73void osvrTimeValueDifference(OSVR_INOUT_PTR OSVR_TimeValue *tvA,
74 OSVR_IN_PTR const OSVR_TimeValue *tvB) {
75 if (!tvA || !tvB) {
76 return;
77 }
78 tvA->seconds -= tvB->seconds;
79 tvA->microseconds -= tvB->microseconds;
80 osvrTimeValueNormalize(tvA);
81}
82
83template <typename T> inline int numcmp(T a, T b) {
84 return (a == b) ? 0 : (a < b ? -1 : 1);

Callers

nothing calls this directly

Calls 1

osvrTimeValueNormalizeFunction · 0.85

Tested by

no test coverage detected