struct high_precision_time_impl

Declaration

struct high_precision_time_impl : public high_precision_time { /* 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/src/format/formatter/high_precision_time.cpp:39

Inherits from: high_precision_time

Method Overview

Inherited from high_precision_time:

Inherited from manipulator:

Methods

void configure(const std::string& str)

Description

configure through script

the string = the time format

Declared at: libs/pika/logging/src/format/formatter/high_precision_time.cpp:92

Parameters

const std::string& str

high_precision_time_impl(
    const std::string& format)

Description

constructs a high_precision_time object

Declared at: libs/pika/logging/src/format/formatter/high_precision_time.cpp:44

Parameters

const std::string& format