![]() |
CommRaT 2.0.0
C++20 Real-Time Messaging Framework
|
Unified timestamp and time utility abstractions for CommRaT. More...
#include <chrono>#include <thread>#include <cstdint>#include <ctime>Go to the source code of this file.
Classes | |
| class | commrat::Time |
| Time utility class - abstraction over clock sources. More... | |
Namespaces | |
| namespace | commrat |
| CommRaT - Modern C++ Real-Time Communication Framework. | |
| namespace | commrat::literals |
| Timestamp comparison and arithmetic operators. | |
Typedefs | |
| using | commrat::Timestamp = uint64_t |
| Timestamp type - uint64_t nanoseconds since epoch. | |
| using | commrat::Nanoseconds = std::chrono::nanoseconds |
| Duration type aliases (compatible with std::chrono but using uint64_t) | |
| using | commrat::Microseconds = std::chrono::microseconds |
| using | commrat::Milliseconds = std::chrono::milliseconds |
| using | commrat::Seconds = std::chrono::seconds |
| using | commrat::Minutes = std::chrono::minutes |
| using | commrat::Hours = std::chrono::hours |
Functions | |
| constexpr Timestamp | commrat::literals::operator""_ns (unsigned long long ns) noexcept |
| constexpr Timestamp | commrat::literals::operator""_us (unsigned long long us) noexcept |
| constexpr Timestamp | commrat::literals::operator""_ms (unsigned long long ms) noexcept |
| constexpr Timestamp | commrat::literals::operator""_s (unsigned long long s) noexcept |
Unified timestamp and time utility abstractions for CommRaT.
Provides a clean abstraction layer for:
Future: Can be switched to realtime clock sources (CLOCK_MONOTONIC, PTP, etc.) without changing user code.
Definition in file timestamp.hpp.