16#if defined(XRT_DOXYGEN)
24#define U_WAIT_MEASURED_SCHEDULER_LATENCY_NS (uint64_t)(0)
26#elif defined(XRT_OS_LINUX) || defined(XRT_OS_ANDROID)
27#define U_WAIT_MEASURED_SCHEDULER_LATENCY_NS (uint64_t)(50 * 1000)
28#elif defined(XRT_OS_OSX)
30#define U_WAIT_MEASURED_SCHEDULER_LATENCY_NS (uint64_t)(0)
31#elif defined(XRT_OS_WINDOWS)
32#define U_WAIT_MEASURED_SCHEDULER_LATENCY_NS (uint64_t)(0)
34#error "Unsupported platform!"
52 if (fuzzy_in_the_past) {
static int64_t os_monotonic_get_ns(void)
Return a monotonic clock in nanoseconds.
Definition: os_time.h:319
static bool time_is_less_then_or_within_range(timepoint_ns a, timepoint_ns b, int64_t range)
Fuzzy comparisons.
Definition: u_time.h:171
static void u_wait_until(struct os_precise_sleeper *sleeper, uint64_t until_ns)
Waits until the given time using the os_precise_sleeper.
Definition: u_wait.h:44
#define U_WAIT_MEASURED_SCHEDULER_LATENCY_NS
OS specific tweak to wait time.
Definition: u_wait.h:24
Wrapper around OS native time functions.
Definition: os_time.h:219
static void os_precise_sleeper_nanosleep(struct os_precise_sleeper *ops, int32_t nsec)
Sleep the given number of nanoseconds, trying harder to be precise.
Definition: os_time.h:247
#define U_TIME_1MS_IN_NS
The number of nanoseconds in a millisecond.
Definition: u_time.h:54
Auto detect OS and certain features.