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

Function osvrStructTimevalToTimeValue

src/osvr/Util/TimeValueC.cpp:113–121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113void osvrStructTimevalToTimeValue(OSVR_OUT OSVR_TimeValue *dest,
114 OSVR_IN_PTR const timeval *src) {
115 if (!dest || !src) {
116 return;
117 }
118 dest->seconds = src->tv_sec;
119 dest->microseconds = src->tv_usec;
120 osvrTimeValueNormalize(dest);
121}
122
123#endif

Callers 6

osvrTimeValueGetNowFunction · 0.85
m_handleMethod · 0.85
m_handleMethod · 0.85
m_handleMethod · 0.85
fromStructTimevalFunction · 0.85
toTimeValueFunction · 0.85

Calls 1

osvrTimeValueNormalizeFunction · 0.85

Tested by

no test coverage detected