GetTickCount or tickcount?
#1

What is the fastest and what is the most efficient?
Reply
#2

#include <a_bump> // Bump!

Does anyone know the answers? GetTickCount or tickcount?
Reply
#3

Why not figure this out yourself. Do a loop of a million and see which one performs the loop the fastest...
Reply
#4

Interesting.

tickcount indeed is faster than GetTickCount.

pawn Код:
new test1 = GetTickCount();
new test1_1 = tickcount();
for(new i; i < 1000000; i++) tickcount();
   
new test2 = GetTickCount();
new test2_2 = tickcount();
for(new i; i < 1000000; i++) GetTickCount();
   
new test3 = GetTickCount();
new test3_3 = tickcount();
   
printf("%d %d", test2 - test1, test3-test2);
printf("%d %d", test2_2 - test1_1, test3_3-test2_2);
Gave me the results

[21:17:26] 118 1445
[21:17:26] 118 1446


Which means tickcount is over 10 times faster than GetTickCount.
Reply
#5

You're the man, Finn, thanks!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)