33 #define M0_TRACE_SUBSYSTEM M0_TRACE_SUBSYS_LIB 41 rc = clock_gettime((clockid_t)clock_id, &tp);
60 struct timespec reqts = {
64 struct timespec remts;
67 rc = nanosleep(&reqts, &remts);
69 *rem =
rc != 0 ?
m0_time(remts.tv_sec, remts.tv_nsec) : 0;
74 #undef M0_TRACE_SUBSYSTEM
static struct io_request req
static m0_time_t tv(int index)
uint64_t m0_time_nanoseconds(const m0_time_t time)
M0_INTERNAL m0_time_t m0_clock_gettimeofday_wrapper(void)
m0_time_t m0_time(uint64_t secs, long ns)
M0_INTERNAL m0_time_t m0_clock_gettime_wrapper(enum CLOCK_SOURCES clock_id)
return M0_ERR(-EOPNOTSUPP)
uint64_t m0_time_seconds(const m0_time_t time)
#define M0_MKTIME(secs, ns)
int m0_nanosleep(const m0_time_t req, m0_time_t *rem)