Hi
I am trying to make my own timer function, but I am having a few problems with it....
First I create a function

Code:
int timer(int t, long current){
      long t2 = (GetTickCount) / 1000;

      if(t2-current >= t){
           return t;
}
}
Then I call the function:
Code:
timer(2,(GetTickCount)/1000); // pause for 2 seconds
Where t is the pause time, and current is the time where the function is called.

But nothing works....what am I doing wrong?