Converts strings like "10s", "5d", "1h" to durations.
Definition in file string_to_duration.hpp.
Go to the source code of this file.
#include <chrono>
#include <string_view>
Namespaces | |
namespace | utils |
Utilities. | |
Functions | |
std::chrono::milliseconds | utils::StringToDuration (std::string_view data) |
Converts strings like "10s", "5d", "1h" to durations. | |