Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Time Function
#1
Hey is it possible to do something like this

code here
code here
code here
code here

"that would be the end of the normal code"
then make it out the amount of time it took to run? most likely only gonna be tenths of seconds or seconds.

Would be a great help! Thanks.
#2

Try this.


Code:
Copy      Help
int t1=GetTickCount
0.1
int t2=GetTickCount
out t2-t1
#3
Hmm not really what i need....that doesnt seem to come out the same everytime.
#4
GetTickCount is fast but not precise. Use perf instead. The time is not the same every time because QM is running not alone on the computer.
#5
OK thanks that helped a little bit. Should be good for now.


Forum Jump:


Users browsing this thread: 2 Guest(s)