r125: This commit was manufactured by cvs2svn to create tag 'r1_1_7-last'.
[cinelerra_cv/mob.git] / hvirtual / quicktime / decore50 / gen_usetime.c
blob7b85f77251b74caf4de3d82862d1f545680bffa4
1 // gen_usetime.c //
3 #include <windows.h>
4 #include <stdio.h>
6 /**
8 **/
10 static int runtime;
11 static int startTime, stopTime;
13 /***/
15 void startTimer()
17 startTime = timeGetTime ();
20 /***/
22 void stopTimer()
24 stopTime = timeGetTime ();
25 runtime = (stopTime - startTime);
28 /***/
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);
38 /***/