TimeCommon
TimeCommon
Classes
| Name | |
|---|---|
| struct | TimeCommon::TAIStatus |
| struct | TimeCommon::TimeStructure |
Types
| Name | |
|---|---|
| enum class | StratumLevel { UnknownStratum, stratum0, stratum1, stratum2, stratum3, stratum4} |
Functions
| Name | |
|---|---|
| uint64_t | getMonotonicClockMicro() Get current time since epoch. |
| TimeCommon::TAIStatus | getStatus() Get TAI status. |
| int64_t | getTAIMicro() Get current TAI time. |
| std::string | taiMicroToString(int64_t taiTimestamp) Converts the input TAI timestamp to a human readable string. Timestamp is converted to local time including leap seconds. |
Types Documentation
enum StratumLevel
| Enumerator | Value | Description |
|---|---|---|
| UnknownStratum | ||
| stratum0 | ||
| stratum1 | ||
| stratum2 | ||
| stratum3 | ||
| stratum4 |
Functions Documentation
function getMonotonicClockMicro
uint64_t getMonotonicClockMicro()
Get current time since epoch.
Return: Return current time since epoch in microseconds
function getStatus
TimeCommon::TAIStatus getStatus()
Get TAI status.
Return: Return the TAI status
function getTAIMicro
int64_t getTAIMicro()
Get current TAI time.
Return: Return current TAI time in microseconds
function taiMicroToString
std::string taiMicroToString(
int64_t taiTimestamp
)
Converts the input TAI timestamp to a human readable string. Timestamp is converted to local time including leap seconds.
Parameters:
- taiTimestamp A TAI timestamp with microseconds resolution
Return: Return a human readable timestamp
Updated on 2023-01-23 at 12:02:53 +0100