5 void main ( int argc
, char** argv
, char** environ
)
7 LARGE_INTEGER liFrequency
;
8 LARGE_INTEGER liStartTime
;
9 LARGE_INTEGER liCurrentTime
;
11 QueryPerformanceFrequency ( &liFrequency
);
12 printf ( "HIGH RESOLUTION PERFOMANCE COUNTER Frequency = %I64d CLOCKS IN SECOND\n",
13 liFrequency
.QuadPart
);
16 if (liFrequency
.QuadPart
== 0)
18 printf("Your computer does not support High Resolution Performance counter\n");
22 printf ( "Press <ENTER> to start test...\n" );
25 printf ( "\nPress any key to quit test\n\n" );
26 QueryPerformanceCounter ( &liStartTime
);
29 QueryPerformanceCounter ( &liCurrentTime
);
30 printf("Elapsed Time : %8.6f mSec\r",
31 ((double)( (liCurrentTime
.QuadPart
- liStartTime
.QuadPart
)* (double)1000.0/(double)liFrequency
.QuadPart
)) );