Hi
I am trying to make my own timer function, but I am having a few problems with it....
First I create a function
Then I call the function:Code:int timer(int t, long current){ long t2 = (GetTickCount) / 1000; if(t2-current >= t){ return t; } }
Where t is the pause time, and current is the time where the function is called.Code:timer(2,(GetTickCount)/1000); // pause for 2 seconds
But nothing works....what am I doing wrong?




Reply With Quote