diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-08-11 17:39:57 +0200 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-08-11 17:41:08 +0200 |
commit | e4c311a864d522e402b67f5393f57d0f663330e4 (patch) | |
tree | 574ae64a816cbb679f9c3731d3991ab50a41c4ae /include/mbgl | |
parent | 7a98ad4cf949dd1279719bf926bd08da0133210f (diff) | |
download | qtlocation-mapboxgl-e4c311a864d522e402b67f5393f57d0f663330e4.tar.gz |
remove uv.h dependency in util/time.hpp
Diffstat (limited to 'include/mbgl')
-rw-r--r-- | include/mbgl/util/time.hpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/include/mbgl/util/time.hpp b/include/mbgl/util/time.hpp index eacee2c982..9d61edf75e 100644 --- a/include/mbgl/util/time.hpp +++ b/include/mbgl/util/time.hpp @@ -1,7 +1,7 @@ #ifndef MBGL_UTIL_TIME #define MBGL_UTIL_TIME -#include <uv.h> +#include <cstdint> namespace mbgl { @@ -13,9 +13,8 @@ namespace util { // Returns time in nanoseconds since an arbitrary point in the past. This has // no relation to the current time, but is continuously increasing, so // comparisons between different timestamps produce meaningful values. -inline timestamp now() { - return uv_hrtime(); -} +timestamp now(); + } // used for time conversions |