blackhole icon indicating copy to clipboard operation
blackhole copied to clipboard

Auto format: duration

Open 3Hren opened this issue 9 years ago • 0 comments

Given a std::chrono::duration value: const std::chrono::seconds value(1);

Suggest some way to auto format both pattern placeholders and attributes when provided values of such type. For example:

logger.log(4, "elapsed: {}", std::chrono::seconds(1), attribute_list{
    "duration", std::chrono::seconds(100)
});

@shindo you might be interested.

3Hren avatar Jan 20 '16 10:01 3Hren