Motr  M0
time.h File Reference
#include <linux/time.h>
Include dependency graph for time.h:

Go to the source code of this file.

Macros

#define __MOTR_LIB_LINUX_KERNEL_TIME_H__
 

Enumerations

enum  CLOCK_SOURCES {
  M0_CLOCK_SOURCE_REALTIME, M0_CLOCK_SOURCE_MONOTONIC, M0_CLOCK_SOURCE_MONOTONIC_RAW, M0_CLOCK_SOURCE_GTOD,
  M0_CLOCK_SOURCE_REALTIME_MONOTONIC, M0_CLOCK_SOURCE_REALTIME = CLOCK_REALTIME, M0_CLOCK_SOURCE_MONOTONIC = CLOCK_MONOTONIC, M0_CLOCK_SOURCE_MONOTONIC_RAW = CLOCK_MONOTONIC_RAW,
  M0_CLOCK_SOURCE_GTOD, M0_CLOCK_SOURCE_REALTIME_MONOTONIC
}
 

Macro Definition Documentation

◆ __MOTR_LIB_LINUX_KERNEL_TIME_H__

#define __MOTR_LIB_LINUX_KERNEL_TIME_H__

Definition at line 24 of file time.h.

Enumeration Type Documentation

◆ CLOCK_SOURCES

Clock sources for m0_time_now().

See also
m0_time_now()
Note
Be sure to change m0_semaphore and m0_timer implementations after changing CLOCK_SOURCES list.
See also
man 3p clock_gettime
timer_posix_set(), m0_semaphore_timeddown(), m0_time_now(), m0_time_to_realtime().
Enumerator
M0_CLOCK_SOURCE_REALTIME 
M0_CLOCK_SOURCE_MONOTONIC 
M0_CLOCK_SOURCE_MONOTONIC_RAW 
Note
POSIX timers on Linux don't support this clock source
M0_CLOCK_SOURCE_GTOD 

gettimeofday(). All others clock sources use clock_gettime()

M0_CLOCK_SOURCE_REALTIME_MONOTONIC 

CLOCK_REALTIME + CLOCK_MONOTONIC combination.

See also
m0_utime_init()
M0_CLOCK_SOURCE_REALTIME 
M0_CLOCK_SOURCE_MONOTONIC 
M0_CLOCK_SOURCE_MONOTONIC_RAW 
Note
POSIX timers on Linux don't support this clock source
M0_CLOCK_SOURCE_GTOD 

gettimeofday(). All others clock sources use clock_gettime()

M0_CLOCK_SOURCE_REALTIME_MONOTONIC 

CLOCK_REALTIME + CLOCK_MONOTONIC combination.

See also
m0_utime_init()

Definition at line 36 of file time.h.