Skip to main content

chronon::params::Latency

Latency/time value with automatic unit parsing (ns/us/ms/s). More...

#include <UnitTypes.hpp>

Public Functions

Name
doubleus() const
std::stringtoString() const
doubles() const
booloperator>(const Latency & other) const
booloperator==(const Latency & other) const
booloperator<(const Latency & other) const
Latencyoperator/(double scalar) const
doubleoperator/(const Latency & other) const
Latencyoperator-(const Latency & other) const
Latencyoperator+(const Latency & other) const
Latencyoperator*(double scalar) const
booloperator!=(const Latency & other) const
doublens() const
doublems() const
Latency(const std::string & s)
Latency(double ns)
Latency()

Detailed Description

class chronon::params::Latency;

Latency/time value with automatic unit parsing (ns/us/ms/s).

Latency lat("10ns");
double us = lat.us(); // 0.01

Public Functions Documentation

function us

inline double us() const

function toString

inline std::string toString() const

function s

inline double s() const

function operator>

inline bool operator>(
const Latency & other
) const

function operator==

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

function operator<

inline bool operator<(
const Latency & other
) const

function operator/

inline Latency operator/(
double scalar
) const

function operator/

inline double operator/(
const Latency & other
) const

function operator-

inline Latency operator-(
const Latency & other
) const

function operator+

inline Latency operator+(
const Latency & other
) const

function operator*

inline Latency operator*(
double scalar
) const

function operator!=

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

function ns

inline double ns() const

function ms

inline double ms() const

function Latency

inline explicit Latency(
const std::string & s
)

function Latency

inline explicit Latency(
double ns
)

function Latency

inline Latency()

Updated on 2026-05-26 at 05:42:32 +0000