Support formatv of TimePoint with strftime-style formats.
Extensions for millis/micros/nanos are added.
Inital use case is HH:MM:SS.MMM timestamps in clangd logs.
Paths
| Differential D38992
Support formatv of TimePoint with strftime-style formats. ClosedPublic Authored by sammccall on Oct 17 2017, 1:37 AM.
Details Summary Support formatv of TimePoint with strftime-style formats. Extensions for millis/micros/nanos are added.
Diff Detail
Event TimelineComment Actions I wanted to add something like this myself, but never got around to doing that. Thanks.
This revision is now accepted and ready to land.Oct 23 2017, 7:11 PM Closed by commit rL316419: Support formatv of TimePoint with strftime-style formats. (authored by sammccall). · Explain WhyOct 24 2017, 1:30 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 119268 include/llvm/Support/Chrono.h
lib/Support/Chrono.cpp
unittests/Support/Chrono.cpp
|
This won't correctly handle the case when the % is already escaped (e.g. %%foobar).