| 71 | } |
| 72 | |
| 73 | void 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 | |
| 83 | template <typename T> inline int numcmp(T a, T b) { |
| 84 | return (a == b) ? 0 : (a < b ? -1 : 1); |
nothing calls this directly
no test coverage detected