Skip to main content

chronon::params::Latency

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

#include <UnitTypes.hpp>

Inherits from chronon::params::detail::ScaledUnitBase< Latency >

Public Functions

Name
doubleus() const
doubles() const
doublens() const
doublems() const
Latency()
Latency(const std::string & s)
Latency(double ns)

Additional inherited members

Public Functions inherited from chronon::params::detail::ScaledUnitBase< Latency >

Name
std::stringtoString() const
booloperator>=(const Derived & other) const
booloperator>(const Derived & other) const
booloperator==(const Derived & other) const
booloperator<=(const Derived & other) const
booloperator<(const Derived & other) const
Derivedoperator/(double scalar) const
doubleoperator/(const Derived & other) const
Derivedoperator-(const Derived & other) const
Derivedoperator+(const Derived & other) const
Derivedoperator*(double scalar) const
booloperator!=(const Derived & other) const
doublebaseValue() const
ScaledUnitBase()
ScaledUnitBase(double base_value)
ScaledUnitBase(const std::string & s)

Protected Functions inherited from chronon::params::detail::ScaledUnitBase< Latency >

Name
voidparse(const std::string & s)

Protected Attributes inherited from chronon::params::detail::ScaledUnitBase< Latency >

Name
doublevalue_

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 s

inline double s() const

function ns

inline double ns() const

function ms

inline double ms() const

function Latency

inline Latency()

function Latency

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

function Latency

inline explicit Latency(
double ns
)

Updated on 2026-07-06 at 09:03:34 +0000