The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

u/time: Add ms to ns helper

+13
+13
src/xrt/auxiliary/util/u_time.h
··· 109 109 } 110 110 111 111 /*! 112 + * Convert double float milliseconds to nanoseconds, human comprehensible config 113 + * inputs. Recommended to keep the absolute value of the input relitively small. 114 + * 115 + * @see timepoint_ns 116 + * @ingroup aux_util 117 + */ 118 + static inline timepoint_ns 119 + time_ms_f_to_ns(double ms_f) 120 + { 121 + return (timepoint_ns)(ms_f * (double)(U_TIME_1MS_IN_NS)); 122 + } 123 + 124 + /*! 112 125 * Checks if two timepoints are with a certain range of each other. 113 126 * 114 127 * @see timepoint_ns