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 | |
|---|---|
| double | us() const |
| double | s() const |
| double | ns() const |
| double | ms() const |
| Latency() | |
| Latency(const std::string & s) | |
| Latency(double ns) |
Additional inherited members
Public Functions inherited from chronon::params::detail::ScaledUnitBase< Latency >
| Name | |
|---|---|
| std::string | toString() const |
| bool | operator>=(const Derived & other) const |
| bool | operator>(const Derived & other) const |
| bool | operator==(const Derived & other) const |
| bool | operator<=(const Derived & other) const |
| bool | operator<(const Derived & other) const |
| Derived | operator/(double scalar) const |
| double | operator/(const Derived & other) const |
| Derived | operator-(const Derived & other) const |
| Derived | operator+(const Derived & other) const |
| Derived | operator*(double scalar) const |
| bool | operator!=(const Derived & other) const |
| double | baseValue() const |
| ScaledUnitBase() | |
| ScaledUnitBase(double base_value) | |
| ScaledUnitBase(const std::string & s) |
Protected Functions inherited from chronon::params::detail::ScaledUnitBase< Latency >
| Name | |
|---|---|
| void | parse(const std::string & s) |
Protected Attributes inherited from chronon::params::detail::ScaledUnitBase< Latency >
| Name | |
|---|---|
| double | value_ |
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