Monado OpenXR Runtime
|
Unifying wrapper around system time retrieval functions. More...
Modules | |
Extra Timekeeping Utilities | |
Less-portable utility functions for manipulating system time, for interoperation with platform APIs. | |
Functions | |
static int64_t | os_monotonic_get_ns (void) |
Return a monotonic clock in nanoseconds. More... | |
static void | os_nanosleep (int64_t nsec) |
Sleep the given number of nanoseconds. More... | |
static int64_t | os_ns_per_qpc_tick_get (void) |
Return a qpc freq in nanoseconds. More... | |
Unifying wrapper around system time retrieval functions.
|
inlinestatic |
#include <auxiliary/os/os_time.h>
Return a monotonic clock in nanoseconds.
References os_ns_per_qpc_tick_get(), and os_timespec_to_ns().
Referenced by add_connected_devices(), get_frame_monotonic_ts(), CDeviceDriver_Monado::GetPose(), hydra_system_update(), os_monotonic_get_ts(), process_frame(), qwerty_controller::qwerty_press_menu(), qwerty_controller::qwerty_press_squeeze(), qwerty_controller::qwerty_press_system(), qwerty_controller::qwerty_press_trigger(), qwerty_controller::qwerty_release_menu(), qwerty_controller::qwerty_release_squeeze(), qwerty_controller::qwerty_release_system(), qwerty_controller::qwerty_release_trigger(), receive_imu_sample(), slot_clear_locked(), time_state::time_state_get_now(), xrt::auxiliary::tracking::slam::timing_ui_push(), and u_wait_until().
|
inlinestatic |
#include <auxiliary/os/os_time.h>
Sleep the given number of nanoseconds.
Note that on some platforms, this may be somewhat less accurate than you might want. On all platforms, the system scheduler has the final say.
References U_1_000_000_000, and U_TIME_1MS_IN_NS.
Referenced by add_connected_devices(), and os_precise_sleeper::os_precise_sleeper_nanosleep().
|
inlinestatic |
#include <auxiliary/os/os_time.h>
Return a qpc freq in nanoseconds.
Referenced by os_monotonic_get_ns().