From: Lars Op den Kamp Date: Sun, 4 Mar 2012 09:45:18 +0000 (+0100) Subject: os-x: don't add 0.5 before dividing in GetTimeMs() X-Git-Tag: upstream/2.2.0~1^2~31^2~100 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=fd49327a9ece647f88de7c452ec8c8ad5c1a1c1e;p=deb_libcec.git os-x: don't add 0.5 before dividing in GetTimeMs() --- 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);