You can use dbTimer, or clock (include time.h); they both return the same thing (a millisecond counter).
Simply waiting for two seconds, you would check dbTimer() / clock(), store its value to a variable and wait until dbTimer() / clock() returns a value that is equal to or greater than the stored time stamp + 2000 milliseconds.
Something like this:
unsigned long timeout = dbTimer() + 2000
while(dbTimer() < timeout);
Of course you probably will want to do other things in that while loop, or else your program will just freeze until the two seconds have passed. It is also a busy wait so it will be more accurate at the cost of using your CPU to the max - if very exact timing isn't necessary you should call Sleep(1) in the loop to allow other processes to use the CPU while your program is just waiting.
"Why do programmers get Halloween and Christmas mixed up?" Because Oct(31) = Dec(25)