|
microfmt
Zero-allocation C++ formatting for constrained environments
|
Formatter for sbintime_view values. More...
#include <bintime.hpp>
Public Member Functions | |
| constexpr void | parse (format_parse_context &ctx) noexcept |
| Parses precision and unit flags from the format specifier. | |
| void | format (const sbintime_view< T > &sv, const sink &out) const noexcept |
Renders an sbintime_t as sec.frac with optional s unit. | |
Public Attributes | |
| time_precision | precision {time_precision::us} |
| Fractional-second precision used when rendering. | |
| bool | show_unit {true} |
Set to false (via r/R) to suppress the trailing s unit. | |
Formatter for sbintime_view values.
Accepts the m/3, u/6, n/9 precision suffixes and the r/R flag to suppress the trailing s unit.
| T | Integral storage type of the wrapped sbintime_t. |
|
inlinenoexcept |
Renders an sbintime_t as sec.frac with optional s unit.
| sv | The view holding the raw 32.32 fixed-point value. |
| out | Destination sink. |
|
inlineconstexprnoexcept |
Parses precision and unit flags from the format specifier.
| ctx | Format parse context exposing the specifier text. |
| time_precision microfmt::formatter< sbintime_view< T > >::precision {time_precision::us} |
Fractional-second precision used when rendering.
| bool microfmt::formatter< sbintime_view< T > >::show_unit {true} |
Set to false (via r/R) to suppress the trailing s unit.