|
libcosmos
Linux C++ System Programming Library
|
#include <time.h>#include <chrono>#include <cosmos/types.hxx>Go to the source code of this file.
Classes | |
| class | cosmos::TimeSpec< CLOCK > |
| A C++ wrapper around the POSIX struct timespec coupled to a specific CLOCK type. More... | |
Typedefs | |
| using | cosmos::AtomicRealTime = TimeSpec<ClockType::ATOMIC_REALTIME> |
| using | cosmos::BootTime = TimeSpec<ClockType::BOOTTIME> |
| using | cosmos::CoarseMonotonicTime = TimeSpec<ClockType::MONOTONIC_COARSE> |
| using | cosmos::MonotonicTime = TimeSpec<ClockType::MONOTONIC> |
| using | cosmos::RawMonotonicTime = TimeSpec<ClockType::MONOTONIC_RAW> |
| using | cosmos::ProcessCpuTime = TimeSpec<ClockType::PROCESS_CPUTIME> |
| using | cosmos::CoarseRealTime = TimeSpec<ClockType::REALTIME_COARSE> |
| using | cosmos::RealTime = TimeSpec<ClockType::REALTIME> |
| using | cosmos::ThreadCpuTime = TimeSpec<ClockType::THREAD_CPUTIME> |
| using | cosmos::IntervalTime = TimeSpec<ClockType::INVALID> |
| TimeSpec used for relative time specifications not based on absolute clock time. | |
Enumerations | |
| enum class | cosmos::ClockTicks : clock_t |
| Type used to express time in clock ticks unit in some APIs. More... | |
| enum class | cosmos::ClockType : clockid_t { REALTIME = CLOCK_REALTIME , REALTIME_COARSE = CLOCK_REALTIME_COARSE , ATOMIC_REALTIME = CLOCK_TAI , MONOTONIC = CLOCK_MONOTONIC , MONOTONIC_RAW = CLOCK_MONOTONIC_RAW , MONOTONIC_COARSE = CLOCK_MONOTONIC_COARSE , BOOTTIME = CLOCK_BOOTTIME , PROCESS_CPUTIME = CLOCK_PROCESS_CPUTIME_ID , THREAD_CPUTIME = CLOCK_THREAD_CPUTIME_ID , INVALID = clockid_t{-1} } |
| Available clock types for time operations. More... | |
Basic time related type definitions.
Definition in file types.hxx.
| using cosmos::AtomicRealTime = TimeSpec<ClockType::ATOMIC_REALTIME> |
| using cosmos::BootTime = TimeSpec<ClockType::BOOTTIME> |
| using cosmos::CoarseMonotonicTime = TimeSpec<ClockType::MONOTONIC_COARSE> |
| using cosmos::CoarseRealTime = TimeSpec<ClockType::REALTIME_COARSE> |
| using cosmos::IntervalTime = TimeSpec<ClockType::INVALID> |
| using cosmos::MonotonicTime = TimeSpec<ClockType::MONOTONIC> |
| using cosmos::ProcessCpuTime = TimeSpec<ClockType::PROCESS_CPUTIME> |
| using cosmos::RawMonotonicTime = TimeSpec<ClockType::MONOTONIC_RAW> |
| using cosmos::RealTime = TimeSpec<ClockType::REALTIME> |
| using cosmos::ThreadCpuTime = TimeSpec<ClockType::THREAD_CPUTIME> |
|
strong |
|
strong |
Available clock types for time operations.
Definition at line 29 of file types.hxx.