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

Function osvrTimeValueToStructTimeval

src/osvr/Util/TimeValueC.cpp:104–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104void osvrTimeValueToStructTimeval(OSVR_OUT timeval *dest,
105 OSVR_IN_PTR const OSVR_TimeValue *src) {
106 if (!dest || !src) {
107 return;
108 }
109 dest->tv_sec = tv_seconds_type(src->seconds);
110 dest->tv_usec = tv_microseconds_type(src->microseconds);
111}
112
113void osvrStructTimevalToTimeValue(OSVR_OUT OSVR_TimeValue *dest,
114 OSVR_IN_PTR const timeval *src) {

Callers 1

toStructTimevalFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected