From 49df16c349c2ac756d203015bb8f3edf3b342a88 Mon Sep 17 00:00:00 2001 From: Alec Thomas Date: Fri, 29 Nov 2013 12:59:02 -0500 Subject: Don't cap at ms. --- entityx/help/Timer.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/entityx/help/Timer.cc b/entityx/help/Timer.cc index 5f70ee0..43960a7 100644 --- a/entityx/help/Timer.cc +++ b/entityx/help/Timer.cc @@ -25,8 +25,7 @@ void Timer::restart() { } double Timer::elapsed() { - auto duration = std::chrono::system_clock::now() - _start; - return static_cast(std::chrono::duration_cast(duration).count()) / 1000.0; + return std::chrono::duration(std::chrono::system_clock::now() - _start).count(); } } // namespace help -- cgit v1.2.3