mirror of
https://github.com/facebook/sapling.git
synced 2024-10-26 11:01:15 +03:00
4d10340022
Summary: Add a `stringToDuration()` function to parse a string into a `std::chrono::nanoseconds` value. Strings are parsed as a sequence of `[number] [unit]` pairs. For instance: `1m30s` --> 90 seconds `5s10ms` --> 5010 milliseconds `1d3h10m` --> 1 day, 3 hours, 10 minutes (1630 minutes total) Reviewed By: strager Differential Revision: D15428934 fbshipit-source-id: 63f6614595c1aaa08c0d03633c6d1b53ca5bf3d5 |
||
---|---|---|
.. | ||
fs | ||
lib/datapack | ||
.clang-format | ||
.gitignore | ||
eden.sln |