summaryrefslogtreecommitdiff
path: root/include/mbgl/util/chrono.hpp
diff options
context:
space:
mode:
authorJohn Firebaugh <john.firebaugh@gmail.com>2015-04-01 14:05:37 -0700
committerKonstantin Käfer <mail@kkaefer.com>2015-04-02 12:28:12 +0200
commit9331acf8e68e428e70c1f73ccb90147e71c586fd (patch)
treedf0d36b3192e96f11817ca9caa490e7075a96eeb /include/mbgl/util/chrono.hpp
parent440864063e916e92eed1b1fe15453e067cbf2781 (diff)
downloadqtlocation-mapboxgl-9331acf8e68e428e70c1f73ccb90147e71c586fd.tar.gz
Add typedefs for std::chrono::steady_clock types
Diffstat (limited to 'include/mbgl/util/chrono.hpp')
-rw-r--r--include/mbgl/util/chrono.hpp16
1 files changed, 16 insertions, 0 deletions
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 <chrono>
+
+namespace mbgl {
+
+using Clock = std::chrono::steady_clock;
+using SystemClock = std::chrono::system_clock;
+
+using TimePoint = Clock::time_point;
+using Duration = Clock::duration;
+
+}
+
+#endif