This website works better with JavaScript.
Home
Help
Sign In
lolengine
/
lol
mirror of
https://github.com/lolengine/lol
Watch
1
Star
0
Fork
0
Code
Issues
0
Releases
0
Wiki
Activity
Browse Source
CIS FIX : timer fix, sam should fix it.
legacy
Benjamin ‘Touky’ Huet
touky
12 years ago
parent
1b436f4821
commit
5ac828fd23
1 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
src/sys/timer.cpp
+ 2
- 1
src/sys/timer.cpp
View File
@@ -88,11 +88,12 @@ private:
{
if (seconds > 5e-4f)
Sleep((int)(seconds * 1e3f + 0.5f));
return .0f; /* FIXME */
}
static float GetSecondsPerCycle()
{
LARGE_INTEGER tmp
LARGE_INTEGER tmp
;
QueryPerformanceFrequency(&tmp);
return 1.f / tmp.QuadPart;
}
Write
Preview
Loading…
Cancel
Save