summaryrefslogtreecommitdiff
path: root/src/mbgl/style/zoom_history.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mbgl/style/zoom_history.hpp')
-rw-r--r--src/mbgl/style/zoom_history.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mbgl/style/zoom_history.hpp b/src/mbgl/style/zoom_history.hpp
index 2488687108..2debff8d44 100644
--- a/src/mbgl/style/zoom_history.hpp
+++ b/src/mbgl/style/zoom_history.hpp
@@ -1,7 +1,8 @@
#ifndef MBGL_STYLE_ZOOM_HISTORY
#define MBGL_STYLE_ZOOM_HISTORY
-#include <chrono>
+#include <mbgl/util/chrono.hpp>
+
#include <cmath>
namespace mbgl {
@@ -9,15 +10,15 @@ namespace mbgl {
struct ZoomHistory {
float lastZoom;
float lastIntegerZoom;
- std::chrono::steady_clock::time_point lastIntegerZoomTime;
+ TimePoint lastIntegerZoomTime;
bool first = true;
- void update(float z, std::chrono::steady_clock::time_point now) {
+ void update(float z, TimePoint now) {
if (first) {
first = false;
lastIntegerZoom = std::floor(z);
- lastIntegerZoomTime = std::chrono::steady_clock::time_point(std::chrono::steady_clock::duration(0));
+ lastIntegerZoomTime = TimePoint(Duration(0));
lastZoom = z;
}