Browse Source

CIS FIX : timer fix, sam should fix it.

legacy
Benjamin ‘Touky’ Huet touky 12 years ago
parent
commit
5ac828fd23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      src/sys/timer.cpp

+ 2
- 1
src/sys/timer.cpp View File

@@ -88,11 +88,12 @@ private:
{ {
if (seconds > 5e-4f) if (seconds > 5e-4f)
Sleep((int)(seconds * 1e3f + 0.5f)); Sleep((int)(seconds * 1e3f + 0.5f));
return .0f; /* FIXME */
} }


static float GetSecondsPerCycle() static float GetSecondsPerCycle()
{ {
LARGE_INTEGER tmp
LARGE_INTEGER tmp;
QueryPerformanceFrequency(&tmp); QueryPerformanceFrequency(&tmp);
return 1.f / tmp.QuadPart; return 1.f / tmp.QuadPart;
} }


Loading…
Cancel
Save