31#include "ove_config.h"
125#define OVE_NS(n) ((uint64_t)(n))
126#define OVE_US(n) ((uint64_t)(n) * 1000ULL)
127#define OVE_MS(n) ((uint64_t)(n) * 1000000ULL)
128#define OVE_SEC(n) ((uint64_t)(n) * 1000000000ULL)
129#define OVE_MIN(n) (OVE_SEC(n) * 60ULL)
167 return (deadline_ns > now) ? (deadline_ns - now) : 0;
void ove_time_delay_ms(uint32_t ms)
Block the calling task for at least ms milliseconds.
void ove_time_delay_us(uint32_t us)
Block the calling task for at least us microseconds.
static uint64_t ove_time_now_steady_ns(void)
Get the current monotonic time in nanoseconds (value-return form).
Definition time.h:140
static uint64_t ove_time_deadline_to_timeout_ns(uint64_t deadline_ns)
Convert a steady-clock deadline to a duration suitable for the existing timeout_ns-taking APIs.
Definition time.h:162
int ove_time_get_ns(uint64_t *out)
Get the current monotonic time in nanoseconds.
int ove_time_get_us(uint64_t *out)
Get the current monotonic time in microseconds.
#define OVE_WAIT_FOREVER
Timeout value that means "block indefinitely".
Definition types.h:162
@ OVE_ERR_NOT_SUPPORTED
Definition types.h:98