summaryrefslogtreecommitdiff
path: root/include/mbgl/platform/time.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/mbgl/platform/time.hpp')
-rw-r--r--include/mbgl/platform/time.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/mbgl/platform/time.hpp b/include/mbgl/platform/time.hpp
new file mode 100644
index 0000000000..8769524514
--- /dev/null
+++ b/include/mbgl/platform/time.hpp
@@ -0,0 +1,13 @@
+#pragma once
+
+#include <chrono>
+
+namespace mbgl {
+namespace platform {
+
+// Returns the current time. Abstracted because some platforms
+// will not allow direct access to the current time via syscall.
+std::chrono::time_point<std::chrono::system_clock, std::chrono::seconds> now();
+
+} // namespace platform
+} // namespace mbgl