| 102 | } |
| 103 | |
| 104 | void 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 | |
| 113 | void osvrStructTimevalToTimeValue(OSVR_OUT OSVR_TimeValue *dest, |
| 114 | OSVR_IN_PTR const timeval *src) { |