Get rid of warning.
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1828 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -681,8 +681,9 @@ RenderLevelMasks (int offset)
|
|||||||
t += clock() - t1;
|
t += clock() - t1;
|
||||||
if (frames_done == MAP_WIDTH)
|
if (frames_done == MAP_WIDTH)
|
||||||
{
|
{
|
||||||
fprintf (stderr, "frames/sec: %d/%ld(msec)=%f\n", frames_done, t,
|
fprintf (stderr, "frames/sec: %d/%ld(msec)=%f\n", frames_done,
|
||||||
frames_done / ((double)t / CLOCKS_PER_SEC));
|
(long int) (((double)t / CLOCKS_PER_SEC) * 1000.0 + 0.5),
|
||||||
|
frames_done / ((double)t / CLOCKS_PER_SEC + 0.5));
|
||||||
frames_done = 1;
|
frames_done = 1;
|
||||||
t = clock () - t1;
|
t = clock () - t1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user