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>
Namespaces | |
namespace | utils |
Utilities. | |
Functions | |
std::chrono::milliseconds | utils::StringToDuration (const std::string &data) |
Converts strings like "10s", "5d", "1h" to durations. | |