#include <stdio.h> #include <MMsystem.h> int main() { LARGE_INTEGER cpuFreq; LARGE_INTEGER count1 , count2; QueryPerformanceFrequency(&cpuFreq); QueryPerformanceCounter(&coutn1); //この間に処理時間を計測したい処理を書きます。 QueryPerformanceCounter(&count2); printf("%f [ms]" , 1000.0*((double)count2.QuadPart - count1.QuadPart)/cpuFreq.QuadPart); return 0; }