senf::emu::annotations::Timestamp Struct Reference

Incoming packet timestamp. More...

#include <senf/Ext/NetEmu/Annotations.hh>

Public Member Functions

 Timestamp ()
 
bool operator< (Timestamp const &other) const
 
Timestampoperator= (Timestamp const &other)
 
void fromScheduler () const
 
void fromSocketProtocol (senf::DatagramSocketProtocol const &protocol) const
 
void fromWallClock () const
 
void fromQueueBuffer (senf::SocketQueueBuffer const &buffer) const
 
senf::ClockService::clock_type as_clock_type () const
 
std::uint32_t as_milli_seconds (std::uint32_t modulo=0xffffffff) const
 

Public Attributes

std::uint32_t timestamp [2]
 

Related Functions

(Note that these are not member functions.)

std::ostream & operator<< (std::ostream &os, Timestamp const &annotation)
 Output Timestamp annotation instance as it's string representation. More...
 

Detailed Description

Incoming packet timestamp.

Definition at line 86 of file Annotations.hh.

Constructor & Destructor Documentation

◆ Timestamp()

senf::emu::annotations::Timestamp::Timestamp ( )

Member Function Documentation

◆ as_clock_type()

senf::ClockService::clock_type senf::emu::annotations::Timestamp::as_clock_type ( ) const

◆ as_milli_seconds()

std::uint32_t senf::emu::annotations::Timestamp::as_milli_seconds ( std::uint32_t  modulo = 0xffffffff) const

◆ fromQueueBuffer()

void senf::emu::annotations::Timestamp::fromQueueBuffer ( senf::SocketQueueBuffer const &  buffer) const

◆ fromScheduler()

void senf::emu::annotations::Timestamp::fromScheduler ( ) const

◆ fromSocketProtocol()

void senf::emu::annotations::Timestamp::fromSocketProtocol ( senf::DatagramSocketProtocol const &  protocol) const

◆ fromWallClock()

void senf::emu::annotations::Timestamp::fromWallClock ( ) const

◆ operator<()

bool senf::emu::annotations::Timestamp::operator< ( Timestamp const &  other) const

◆ operator=()

Timestamp& senf::emu::annotations::Timestamp::operator= ( Timestamp const &  other)

Friends And Related Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
Timestamp const &  annotation 
)
related

Output Timestamp annotation instance as it's string representation.

Member Data Documentation

◆ timestamp

std::uint32_t senf::emu::annotations::Timestamp::timestamp[2]
mutable

Definition at line 88 of file Annotations.hh.


The documentation for this struct was generated from the following file: