11 static int startTime
, stopTime
;
17 startTime
= timeGetTime ();
24 stopTime
= timeGetTime ();
25 runtime
= (stopTime
- startTime
);
30 void displayTimer(int picnum
)
32 printf ("%d.%02d seconds, %d frames, %d.%02d fps\n",
33 runtime
/ 100, runtime
% 100,
34 picnum
, ((10000 * picnum
+ runtime
/ 2) / runtime
) / 100,
35 ((10000 * picnum
+ runtime
/ 2) / runtime
) % 100);