diff options
Diffstat (limited to 'include/mbgl/util/chrono.hpp')
-rw-r--r-- | include/mbgl/util/chrono.hpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/mbgl/util/chrono.hpp b/include/mbgl/util/chrono.hpp index 723cd131e3..7384f5437d 100644 --- a/include/mbgl/util/chrono.hpp +++ b/include/mbgl/util/chrono.hpp @@ -11,7 +11,7 @@ using Seconds = std::chrono::seconds; using Milliseconds = std::chrono::milliseconds; using TimePoint = Clock::time_point; -using Duration = Clock::duration; +using Duration = Clock::duration; // Used to measure second-precision times, such as times gathered from HTTP responses. using Timestamp = std::chrono::time_point<std::chrono::system_clock, Seconds>; @@ -28,18 +28,19 @@ std::string rfc1123(Timestamp); // YYYY-mm-dd HH:MM:SS e.g. "2015-11-26 16:11:23" std::string iso8601(Timestamp); -Timestamp parseTimestamp(const char *); +Timestamp parseTimestamp(const char*); Timestamp parseTimestamp(const int32_t timestamp); // C++17 polyfill +/* template <class Rep, class Period, class = std::enable_if_t< std::chrono::duration<Rep, Period>::min() < std::chrono::duration<Rep, Period>::zero()>> constexpr std::chrono::duration<Rep, Period> abs(std::chrono::duration<Rep, Period> d) { return d >= d.zero() ? d : -d; } - +*/ } // namespace util } // namespace mbgl |