#include <windows.h>
#include <iostream>
using namespace std;

int main (void)
{
    static unsigned long dwOldTime = GetTickCount();
    static unsigned long dwTimeElapsed;
    static int x = 0;

    dwTimeElapsed = GetTickCount() - dwOldTime;
    //cout<<dwTimeElapsed<<"\n";
    while(true)
    {
 
        cout << dwOldTime << "\n";
     for (int i = 0; i < 10000000; i++);
        dwOldTime = GetTickCount();
       
    }

}