How to get timer current count?
#2

yes.

You create a var for hold the timer initial time.

Код:
new timerInitTime;
timerInitTime = gettime();
SetTimerEx("yourfunc", 666666, true, "i", YourParam);
Then, to get the time :

Код:
timeCount = (gettime() - timerInitTime;
Notice that the time you get is in seconds.
You can multiply the result with 1000 to get the time in miliseconds.
Reply


Messages In This Thread
How to get timer current count? - by GunZsmd - 14.07.2016, 23:39
Re: How to get timer current count? - by yutaruta - 14.07.2016, 23:58
Re: How to get timer current count? - by Threshold - 15.07.2016, 12:50

Forum Jump:


Users browsing this thread: 3 Guest(s)