25 #ifndef __MOTR_LIB_TIME_H__ 26 #define __MOTR_LIB_TIME_H__ 44 #define TIME_F "[%" PRIu64 ":%09" PRIu64 "]" 45 #define TIME_P(t) m0_time_seconds(t), m0_time_nanoseconds(t) 86 #define M0_MKTIME(secs, ns) \ 87 ((m0_time_t)((uint64_t)(secs) * M0_TIME_ONE_SECOND + (uint64_t)(ns))) m0_time_t m0_time_monotonic_offset
const m0_time_t M0_TIME_NEVER
static struct io_request req
uint64_t m0_time_nanoseconds(const m0_time_t time)
enum CLOCK_SOURCES M0_CLOCK_SOURCE
m0_time_t m0_time(uint64_t secs, long ns)
bool m0_time_is_in_past(m0_time_t t)
m0_time_t m0_time_now(void)
m0_time_t m0_time_add(const m0_time_t t1, const m0_time_t t2)
uint64_t m0_time_seconds(const m0_time_t time)
m0_time_t m0_time_from_now(uint64_t secs, long ns)
m0_time_t m0_time_sub(const m0_time_t t1, const m0_time_t t2)
M0_INTERNAL m0_time_t m0_time_to_realtime(m0_time_t abs_time)
const m0_time_t M0_TIME_IMMEDIATELY
int m0_nanosleep(const m0_time_t req, m0_time_t *rem)