20.09.2012, 15:54
How can I get use a function microtime like in PHP? Is there any func related or exact same of that?
stock Function() { new time = gettime(); // code between the two gettime functions. new time2 = gettime(); printf("Time function took to execute: %d ms", time2-time); }
new time = gettime();
function();
new time2 = gettime();
printf("%s took %d ms.", "function()", time2-time);
gettime(&hour = 0, &minute = 0, &second = 0)
GetTickCount()