From fd49327a9ece647f88de7c452ec8c8ad5c1a1c1e Mon Sep 17 00:00:00 2001 From: Lars Op den Kamp Date: Sun, 4 Mar 2012 10:45:18 +0100 Subject: [PATCH] os-x: don't add 0.5 before dividing in GetTimeMs() --- src/lib/platform/util/timeutils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/platform/util/timeutils.h b/src/lib/platform/util/timeutils.h index 58cc89b..f4f2810 100644 --- a/src/lib/platform/util/timeutils.h +++ b/src/lib/platform/util/timeutils.h @@ -78,7 +78,7 @@ namespace PLATFORM inline int64_t GetTimeMs() { #if defined(__APPLE__) - return (int64_t) (CVGetCurrentHostTime() / (int64_t)(CVGetHostClockFrequency() * 0.001 + 0.5)); + return (int64_t) (CVGetCurrentHostTime() / (int64_t)(CVGetHostClockFrequency() * 0.001)); #elif defined(__WINDOWS__) time_t rawtime; time(&rawtime); -- 2.34.1