Module linux_api::time [] [src]

Constants and structures from time classes

This includes include/uapi/linux/time.h, //include/linux/time.h, and /include/linux/time64.h

Structs

itimerspec

An interval timer based on a timespec

itimerval

An interval timer based on a timeval

timespec

A structure that contains the number of seconds and nanoseconds since an epoch.

timeval

A structure that contains the number of seconds and microseconds since an epoch.

timezone

A structure containing information on the time-based location of a timezone

Constants

CLOCKS_MASK

A mask for supported clocks

CLOCKS_MONO

A shorthand variant of CLOCK_MONOTONIC.

CLOCK_BOOTIME

Identical to CLOCK_MONOTONIC, but includes any time that the system is suspended.

CLOCK_BOOTTIME_ALARM

Identical to CLOCK_BOOTIME, but timers exposed via this will wake the system if suspended

CLOCK_MONOTONIC

A clock that measures monotonic time since an unspecified starting point

CLOCK_MONOTONIC_COARSE

A faster but less precise version of CLOCK_MONOTONIC, measuring time since an unspecified starting point

CLOCK_MONOTONIC_RAW

A hardware-based version of CLOCK_MONOTONIC that is not subject to changes

CLOCK_PROCESS_CPUTIME_ID

A high-resolution per-process timer from the processor.

CLOCK_REALTIME

A system-wide clock that measures time from the "real world"

CLOCK_REALTIME_ALARM

Identical to CLOCK_REALTIME, but timers exposed via this will wake the system if suspended

CLOCK_REALTIME_COARSE

A faster but less precise version of CLOCK_REALTIME, measuring time in the "real world"

CLOCK_SGI_CYCLE

A clock used for SGI systems. Need to investigate

CLOCK_TAI

A clock that shows International Atomic Time

CLOCK_THREAD_CPUTIME_ID

A (high-resolution?) thread-specific timer from the processor

FSEC_PER_SEC

The number of femtoseconds in a second

ITIMER_PROF

Decrements both while the process is executing and while the system is executing on behalf of the process

ITIMER_REAL

An interval timer that decrements in real time

ITIMER_VIRTUAL

An interval timer that decrements only when the process is executing.

KTIME_MAX

The maximum value of a ktime_t

KTIME_SEC_MAX

The maximum number of seconds in a ktime_t

MAX_CLOCKS

The maximum clock ID that the system is allowed to have

MSEC_PER_SEC

The number of milliseconds in a second

NSEC_PER_MSEC

The number of nanoseconds in a millisecond

NSEC_PER_SEC

The number of nanoseconds in a second

NSEC_PER_USEC

The number of nanoseconds in a microsecond

TIME64_MAX

The maximum value of a time64_t

TIMER_ABSTIME

A flag indicating time is absolute

TIME_T_MAX
USEC_PER_MSEC

The number of microseconds in a millisecond

USEC_PER_SEC

The number of microseconds in a second

Type Definitions

time64_t

The type used for 64-bit time