From 9331acf8e68e428e70c1f73ccb90147e71c586fd Mon Sep 17 00:00:00 2001 From: John Firebaugh Date: Wed, 1 Apr 2015 14:05:37 -0700 Subject: Add typedefs for std::chrono::steady_clock types --- include/mbgl/util/chrono.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/mbgl/util/chrono.hpp (limited to 'include/mbgl/util/chrono.hpp') diff --git a/include/mbgl/util/chrono.hpp b/include/mbgl/util/chrono.hpp new file mode 100644 index 0000000000..df8c5e6234 --- /dev/null +++ b/include/mbgl/util/chrono.hpp @@ -0,0 +1,16 @@ +#ifndef MBGL_UTIL_CHRONO +#define MBGL_UTIL_CHRONO + +#include + +namespace mbgl { + +using Clock = std::chrono::steady_clock; +using SystemClock = std::chrono::system_clock; + +using TimePoint = Clock::time_point; +using Duration = Clock::duration; + +} + +#endif -- cgit v1.2.1