summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-08-11 17:39:57 +0200
committerKonstantin Käfer <mail@kkaefer.com>2014-08-11 17:41:08 +0200
commite4c311a864d522e402b67f5393f57d0f663330e4 (patch)
tree574ae64a816cbb679f9c3731d3991ab50a41c4ae /src
parent7a98ad4cf949dd1279719bf926bd08da0133210f (diff)
downloadqtlocation-mapboxgl-e4c311a864d522e402b67f5393f57d0f663330e4.tar.gz
remove uv.h dependency in util/time.hpp
Diffstat (limited to 'src')
-rw-r--r--src/util/time.cpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/util/time.cpp b/src/util/time.cpp
new file mode 100644
index 0000000000..493a6ccfa8
--- /dev/null
+++ b/src/util/time.cpp
@@ -0,0 +1,13 @@
+#include <mbgl/util/time.hpp>
+
+#include <uv.h>
+
+namespace mbgl {
+namespace util {
+
+timestamp now() {
+ return uv_hrtime();
+}
+
+}
+}