chronon::params::Latency
Latency/time value with automatic unit parsing (ns/us/ms/s). More...
#include <UnitTypes.hpp>
Public Functions
| Name | |
|---|---|
| double | us() const |
| std::string | toString() const |
| double | s() const |
| bool | operator>(const Latency & other) const |
| bool | operator==(const Latency & other) const |
| bool | operator<(const Latency & other) const |
| Latency | operator/(double scalar) const |
| double | operator/(const Latency & other) const |
| Latency | operator-(const Latency & other) const |
| Latency | operator+(const Latency & other) const |
| Latency | operator*(double scalar) const |
| bool | operator!=(const Latency & other) const |
| double | ns() const |
| double | ms() 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