struct high_precision_time
Declaration
struct high_precision_time : public manipulator { /* full declaration omitted */ };Description
Prefixes the message with a high-precision time (. You pass the format string at construction.
Internally, it uses pika::util::date_time::microsec_time_clock. So, our precision matches this class. The format can contain escape sequences: $dd - day, 2 digits $MM - month, 2 digits $yy - year, 2 digits $yyyy - year, 4 digits $hh - hour, 2 digits $mm - minute, 2 digits $ss - second, 2 digits $mili - milliseconds $micro - microseconds (if the high precision clock allows; otherwise, it pads zeros) $nano - nanoseconds (if the high precision clock allows; otherwise, it pads zeros) Example:
Declared at: libs/pika/logging/include/pika/logging/format/formatters.hpp:86
Inherits from: manipulator
Method Overview
- protected high_precision_time(const std::string & format)
- public static std::unique_ptr<high_precision_time> make(const std::string & format)
- public ~high_precision_time()
Inherited from manipulator:
Methods
high_precision_time(const std::string& format)
high_precision_time(const std::string& format)Declared at: libs/pika/logging/include/pika/logging/format/formatters.hpp:94
Parameters
- const std::string& format
static std::unique_ptr<high_precision_time> make(
const std::string& format)
static std::unique_ptr<high_precision_time> make(
const std::string& format)Declared at: libs/pika/logging/include/pika/logging/format/formatters.hpp:88
Parameters
- const std::string& format
~high_precision_time()
~high_precision_time()Declared at: libs/pika/logging/include/pika/logging/format/formatters.hpp:91