repositories
/
deb_libcec.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e33e0d7
)
cec: fixed - frequency wasn't checked in GetTimeMs(), leading to incorrect wait times...
author
Lars Op den Kamp
<lars@opdenkamp.eu>
Wed, 21 Mar 2012 15:17:30 +0000
(16:17 +0100)
committer
Lars Op den Kamp
<lars@opdenkamp.eu>
Wed, 21 Mar 2012 15:17:30 +0000
(16:17 +0100)
src/lib/platform/util/timeutils.h
patch
|
blob
|
blame
|
history
diff --git
a/src/lib/platform/util/timeutils.h
b/src/lib/platform/util/timeutils.h
index f4f28109288074b3436001e810c8ebc0ed7bff25..5f2d27aeec3f46914e0a5b3388df50a2278f28df 100644
(file)
--- a/
src/lib/platform/util/timeutils.h
+++ b/
src/lib/platform/util/timeutils.h
@@
-80,15
+80,12
@@
namespace PLATFORM
#if defined(__APPLE__)
return (int64_t) (CVGetCurrentHostTime() / (int64_t)(CVGetHostClockFrequency() * 0.001));
#elif defined(__WINDOWS__)
- time_t rawtime;
- time(&rawtime);
-
LARGE_INTEGER tickPerSecond;
LARGE_INTEGER tick;
if (QueryPerformanceFrequency(&tickPerSecond))
{
QueryPerformanceCounter(&tick);
- return (int64_t) (tick.QuadPart /
1000.
);
+ return (int64_t) (tick.QuadPart /
(tickPerSecond.QuadPart / 1000.)
);
}
return -1;
#else