Skip to main content

ClockTicks

ClockTicks

Strong type for clock tick values. More…

#include <ClockTicks.hpp>

Public Functions

Name
ClockTicks(int64_t value)
int64_t getValue() const
bool operator==(ClockTicks const & other) const
bool operator!=(ClockTicks const & other) const
bool operator<(ClockTicks const & other) const
bool operator<=(ClockTicks const & other) const
bool operator>(ClockTicks const & other) const
bool operator>=(ClockTicks const & other) const
ClockTicks operator+(int64_t offset) const
ClockTicks operator-(int64_t offset) const
int64_t operator-(ClockTicks const & other) const

Detailed Description

class ClockTicks;

Strong type for clock tick values.

Represents raw clock ticks from acquisition hardware. Can be converted to seconds if the sampling rate is known (stored in associated TimeFrame). Multiple data streams using the same clock can be confidently synchronized.

Public Functions Documentation

function ClockTicks

inline explicit ClockTicks(
    int64_t value
)

function getValue

inline int64_t getValue() const

function operator==

inline bool operator==(
    ClockTicks const & other
) const

function operator!=

inline bool operator!=(
    ClockTicks const & other
) const

function operator<

inline bool operator<(
    ClockTicks const & other
) const

function operator<=

inline bool operator<=(
    ClockTicks const & other
) const

function operator>

inline bool operator>(
    ClockTicks const & other
) const

function operator>=

inline bool operator>=(
    ClockTicks const & other
) const

function operator+

inline ClockTicks operator+(
    int64_t offset
) const

function operator-

inline ClockTicks operator-(
    int64_t offset
) const

function operator-

inline int64_t operator-(
    ClockTicks const & other
) const

Updated on 2026-11-13 at 20:25:41 +0000