03.04.2009, 22:23
Timers aren't accurate for doing time difference.
Using GetTickCount() (or gettime(), for seconds precision) is a lot better for this.
You get time difference in milliseconds.
Using GetTickCount() (or gettime(), for seconds precision) is a lot better for this.
pawn Код:
//where you start counting:
new time_start = GetTickCount();
//where you want to know time difference:
new time_diff = GetTickCount() - time_start;

