15#if defined(XRT_DOXYGEN)
23#define U_WAIT_MEASURED_SCHEDULER_LATENCY_NS (uint64_t)(0)
25#elif defined(XRT_OS_LINUX) || defined(XRT_OS_ANDROID)
26#define U_WAIT_MEASURED_SCHEDULER_LATENCY_NS (uint64_t)(50 * 1000)
27#elif defined(XRT_OS_WINDOWS)
28#define U_WAIT_MEASURED_SCHEDULER_LATENCY_NS (uint64_t)(0)
30#error "Unsupported platform!"
48 if (fuzzy_in_the_past) {
static int64_t os_monotonic_get_ns(void)
Return a monotonic clock in nanoseconds.
Definition: os_time.h:309
static bool time_is_less_then_or_within_range(timepoint_ns a, timepoint_ns b, int64_t range)
Fuzzy comparisons.
Definition: u_time.h:164
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:40
#define U_WAIT_MEASURED_SCHEDULER_LATENCY_NS
OS specific tweak to wait time.
Definition: u_wait.h:23
Wrapper around OS native time functions.
Definition: os_time.h:208
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:236
#define U_TIME_1MS_IN_NS
The number of nanoseconds in a millisecond.
Definition: u_time.h:54
Auto detect OS and certain features.