From fe9648fa1cdc8f9cf5216a88fadb8b96604047fd Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Fri, 3 Apr 2015 20:27:27 +0200 Subject: base/time: Replaces by std::chrono. --- src/menu/mouse_event.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/menu/mouse_event.cpp') diff --git a/src/menu/mouse_event.cpp b/src/menu/mouse_event.cpp index 814e179c..3f4104a0 100644 --- a/src/menu/mouse_event.cpp +++ b/src/menu/mouse_event.cpp @@ -25,7 +25,6 @@ #include #include "mouse_event.hpp" -#include "base/time.hpp" namespace usdx { @@ -49,16 +48,17 @@ namespace usdx { if (direction == UP) { if (this->direction == DOWN) { - if (time.since(5000)) + if (time.since(std::chrono::milliseconds{5000})) return CLICK; } else if (this->direction == CLICK) { - if (time.since(5000)) + if (time.since(std::chrono::milliseconds{5000})) return DBL_CLICK; } } else if (direction == DOWN) { - if (this->direction == CLICK && time.since(5000)) + if (this->direction == CLICK && + time.since(std::chrono::milliseconds{5000})) return CLICK; } } -- cgit v1.2.3