#include <stdio.h>
#include <conio.h>
#include <windows.h>
Go to the source code of this file.
◆ main()
Definition at line 5 of file TestTimer.c.
6{
10
12 printf (
"HIGH RESOLUTION PERFOMANCE COUNTER Frequency = %I64d CLOCKS IN SECOND\n",
14
15
17 {
18 printf(
"Your computer does not support High Resolution Performance counter\n");
19 return;
20 }
21
22 printf (
"Press <ENTER> to start test...\n" );
24
25 printf (
"\nPress any key to quit test\n\n" );
27 for (;;)
28 {
30 printf(
"Elapsed Time : %8.6f mSec\r",
33 break;
34 }
35
36
37}
BOOL WINAPI QueryPerformanceFrequency(OUT PLARGE_INTEGER lpFrequency)
BOOL WINAPI QueryPerformanceCounter(OUT PLARGE_INTEGER lpPerformanceCount)
_Check_return_ _CRTIMP int __cdecl getchar(void)
_CRTIMP int __cdecl _kbhit(void)