[Include] Main.inc - A lot of random useful functions (also necessary for my releases)
#17

Quote:
Originally Posted by Swedky
Посмотреть сообщение
Sure it works, but why "GetTickCount() - GetTickCount() < interval" instead "0 < interval"?
That is an infinite loop.

His code isn't an infinite loop. After executing the loop millions of times, GetTickCount will return a new value whereas TickCount will remain the same. It works like the sleep() function.

EDIT: Oops. I bumped. Sorry.
Reply


Messages In This Thread
Main.inc - A lot of random useful functions (also necessary for my releases) - by ¤Adas¤ - 27.11.2016, 15:45
Re: Main.inc - A lot of random useful functions (also necessary for my releases) - by Dayrion - 27.11.2016, 15:48
Re: Main.inc - A lot of random useful functions (also necessary for my releases) - by ¤Adas¤ - 27.11.2016, 16:39
Re: Main.inc - A lot of random useful functions (also necessary for my releases) - by oMa37 - 27.11.2016, 16:56
Re: Main.inc - A lot of random useful functions (also necessary for my releases) - by ¤Adas¤ - 27.11.2016, 17:23
Re: Main.inc - A lot of random useful functions (also necessary for my releases) - by Pottus - 27.11.2016, 17:27
Re: Main.inc - A lot of random useful functions (also necessary for my releases) - by ¤Adas¤ - 27.11.2016, 17:52
Re: Main.inc - A lot of random useful functions (also necessary for my releases) - by Ivan_Ino - 27.11.2016, 17:52
Re: Main.inc - A lot of random useful functions (also necessary for my releases) - by oMa37 - 27.11.2016, 18:05
Re: Main.inc - A lot of random useful functions (also necessary for my releases) - by Swedky - 27.11.2016, 20:14
Re: Main.inc - A lot of random useful functions (also necessary for my releases) - by ¤Adas¤ - 27.11.2016, 20:48
Re: Main.inc - A lot of random useful functions (also necessary for my releases) - by Yashas - 28.11.2016, 05:12
Re: Main.inc - A lot of random useful functions (also necessary for my releases) - by Pearson - 28.11.2016, 11:43
Re: Main.inc - A lot of random useful functions (also necessary for my releases) - by AbyssMorgan - 28.11.2016, 18:13
Re: Main.inc - A lot of random useful functions (also necessary for my releases) - by Dignity - 10.12.2016, 17:04
Re: Main.inc - A lot of random useful functions (also necessary for my releases) - by Swedky - 10.12.2016, 17:21
Re: Main.inc - A lot of random useful functions (also necessary for my releases) - by Yashas - 09.02.2017, 16:37

Forum Jump:


Users browsing this thread: 2 Guest(s)