#include <iostream>
#include <Windows.h>
#include <stdio.h>
#include <MMSystem.h>
#include <process.h>
using namespace std;
#include <Windows.h>
#include <stdio.h>
#include <MMSystem.h>
#include <process.h>
using namespace std;
#pragma comment(lib, "winmm.lib")
int main()
{
static unsigned int LastTimeStamp = 0;
static __int64 OverFlowCount = 0;
const unsigned int CurrentTime = timeGetTime();
if (CurrentTime < LastTimeStamp) //if current time over 0xFF FF FF FF
{
OverFlowCount +=1;
}
LastTimeStamp = CurrentTime;
const __int64 Time = (OverFlowCount << 32) | CurrentTime;
cout << Time << endl;
SYSTEMTIME systime ={0};
system("pause");
return 0;
}