diff --git a/include/mbgl/util/time.hpp b/include/mbgl/util/time.hpp index eacee2c98..9d61edf75 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 +#include 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 diff --git a/src/util/time.cpp b/src/util/time.cpp new file mode 100644 index 000000000..493a6ccfa --- /dev/null +++ b/src/util/time.cpp @@ -0,0 +1,13 @@ +#include + +#include + +namespace mbgl { +namespace util { + +timestamp now() { + return uv_hrtime(); +} + +} +}