Communication Library for Autonomous Systems v1.0
Reliable and secure communication library for autonomous vehicle systems
Loading...
Searching...
No Matches
clock.h File Reference
#include <chrono>
#include <atomic>
#include <mutex>
#include <cstdint>
#include <ostream>
#include "api/util/debug.h"
#include "api/traits.h"
#include "api/framework/leaderKeyStorage.h"
#include "api/network/ethernet.h"

Go to the source code of this file.

Classes

struct  PtpRelevantData
 
struct  PtpInternalMessageInfo
 
class  Clock
 Thread-safe singleton for PTP clock synchronization. More...
 

Typedefs

using TimestampType = std::chrono::time_point< std::chrono::steady_clock, std::chrono::microseconds >
 
using DurationType = std::chrono::microseconds
 
using FrequencyErrorType = double
 
using LeaderIdType = uint32_t
 

Functions

std::ostreamoperator<< (std::ostream &os, Clock::State state)
 

Variables

const LeaderIdType INVALID_LEADER_ID = 0
 

Typedef Documentation

◆ DurationType

◆ FrequencyErrorType

◆ LeaderIdType

◆ TimestampType

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream os,
Clock::State  state 
)
inline

Variable Documentation

◆ INVALID_LEADER_ID

const LeaderIdType INVALID_LEADER_ID = 0