#include <windows.h> #include <iostream> #pragma comment( lib,"winmm.lib" ) int main() { DWORD msec = timeGetTime(); std::cout << "msec = " << msec << std::endl; return ; }