#include<stdio.h> #include<conio.h> #include<windows.h> int main(){ LARGE_INTEGER frequency; LARGE_INTEGER e,s,diff; QueryPerformanceCounter(&s); for(int i=0;i<100;i++) {} QueryPerformanceCounter(&e); diff=(e-s)/frequency*1000; unsigned int milliseconds = (unsigned int)(diff & 0xffffffff); printf("%u",milliseconds); getch(); return 0; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)