Motr  M0
time.c File Reference
#include "lib/trace.h"
#include "lib/time.h"
#include "lib/time_internal.h"
#include "lib/misc.h"
Include dependency graph for time.c:

Go to the source code of this file.

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_LIB
 

Functions

m0_time_t m0_time (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)
 
uint64_t m0_time_seconds (const m0_time_t time)
 
uint64_t m0_time_nanoseconds (const m0_time_t time)
 
m0_time_t m0_time_from_now (uint64_t secs, long ns)
 
bool m0_time_is_in_past (m0_time_t t)
 
M0_INTERNAL int m0_time_init (void)
 
M0_INTERNAL void m0_time_fini (void)
 
m0_time_t m0_time_now (void)
 
M0_INTERNAL m0_time_t m0_time_to_realtime (m0_time_t abs_time)
 

Variables

const m0_time_t M0_TIME_IMMEDIATELY = 0
 
const m0_time_t M0_TIME_NEVER = ~0ULL
 
enum CLOCK_SOURCES M0_CLOCK_SOURCE = M0_CLOCK_SOURCE_REALTIME_MONOTONIC
 
m0_time_t m0_time_monotonic_offset
 

Macro Definition Documentation

◆ M0_TRACE_SUBSYSTEM

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_LIB

Definition at line 23 of file time.c.