win32_time.h (249B)
1 #pragma once 2 3 #include <windows.h> 4 5 inline double get_time() { 6 LARGE_INTEGER counter; 7 QueryPerformanceCounter( &counter ); 8 9 LARGE_INTEGER freq; 10 QueryPerformanceFrequency( &freq ); 11 12 return double( counter.QuadPart ) / double( freq.QuadPart ); 13 }