|
LogCabin
|
Functions | |
| int64_t | parseSignedDuration (const std::string &description) |
| Convert a human-readable description of a time duration into a number of nanoseconds. | |
| uint64_t | parseNonNegativeDuration (const std::string &description) |
| Convert a human-readable description of a time duration into a number of nanoseconds. | |
| int64_t LogCabin::Client::Util::parseSignedDuration | ( | const std::string & | description | ) |
Convert a human-readable description of a time duration into a number of nanoseconds.
| description | Something like 10, 10s, -200ms, 3us, or -999ns. With no units, defaults to seconds. May be negative. Allowed units: ns, nanosecond(s), ms, millisecond(s), s, second(s), min, minute(s), h, hr, hour(s), d, day(s), w, wk, week(s), mo, month(s), y, yr, year(s). |
| Client::InvalidArgumentException | If description could not be parsed successfully. |
| uint64_t LogCabin::Client::Util::parseNonNegativeDuration | ( | const std::string & | description | ) |
Convert a human-readable description of a time duration into a number of nanoseconds.
| description | Something like 10, 10s, 200ms, 3us, or 999ns. With no units, defaults to seconds. May not be negative. Allowed units: ns, nanosecond(s), ms, millisecond(s), s, second(s), min, minute(s), h, hr, hour(s), d, day(s), w, wk, week(s), mo, month(s), y, yr, year(s). |
| Client::InvalidArgumentException | If description could not be parsed successfully. |
1.7.6.1