Timer explanation.
#5

Timers aren't accurate for doing time difference.

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;
You get time difference in milliseconds.
Reply


Messages In This Thread
Timer explanation. - by MiTaKa - 13.10.2008, 21:56
Re: Timer explanation. - by bineboy - 13.10.2008, 22:03
Re: Timer explanation. - by speedruntrainer - 03.04.2009, 21:27
Re: Timer explanation. - by MenaceX^ - 03.04.2009, 21:30
Re: Timer explanation. - by yom - 03.04.2009, 22:23
Re: Timer explanation. - by speedruntrainer - 03.04.2009, 23:10
Re: Timer explanation. - by speedruntrainer - 04.04.2009, 10:31
Re: Timer explanation. - by MenaceX^ - 04.04.2009, 10:55

Forum Jump:


Users browsing this thread: 1 Guest(s)