Motr
M0
|
Go to the source code of this file.
Macros | |
#define | __MOTR_LIB_TIME_H__ |
#define | TIME_F "[%" PRIu64 ":%09" PRIu64 "]" |
#define | TIME_P(t) m0_time_seconds(t), m0_time_nanoseconds(t) |
#define | M0_MKTIME(secs, ns) ((m0_time_t)((uint64_t)(secs) * M0_TIME_ONE_SECOND + (uint64_t)(ns))) |
Typedefs | |
typedef uint64_t | m0_time_t |
Enumerations | |
enum | { M0_TIME_ONE_SECOND = 1000000000ULL, M0_TIME_ONE_MSEC = M0_TIME_ONE_SECOND / 1000 } |
Functions | |
M0_INTERNAL m0_time_t | m0_time_to_realtime (m0_time_t abs_time) |
m0_time_t | m0_time (uint64_t secs, long ns) |
m0_time_t | m0_time_now (void) |
m0_time_t | m0_time_from_now (uint64_t secs, long ns) |
m0_time_t | m0_time_add (const m0_time_t t1, const m0_time_t t2) |
m0_time_t | m0_time_sub (const m0_time_t t1, const m0_time_t t2) |
int | m0_nanosleep (const m0_time_t req, m0_time_t *rem) |
uint64_t | m0_time_seconds (const m0_time_t time) |
uint64_t | m0_time_nanoseconds (const m0_time_t time) |
bool | m0_time_is_in_past (m0_time_t t) |
Variables | |
const m0_time_t | M0_TIME_IMMEDIATELY |
const m0_time_t | M0_TIME_NEVER |
enum CLOCK_SOURCES | M0_CLOCK_SOURCE |
m0_time_t | m0_time_monotonic_offset |