Timing of Code Execution

 

Hey all,

Is there any way to time how long the code takes to execute for 1 tick? I know in Matlab there are commands to do this (tic,toc IIRC)

Thanks,

J

 
jacad:

Is there any way to time how long the code takes to execute for 1 tick? I know in Matlab there are commands to do this (tic,toc IIRC)

GetTickCount(), but it's accuracy is limited, see here -> https://www.mql5.com/en/forum/105178.
 
gordon:
GetTickCount(), but it's accuracy is limited, see here -> https://www.mql5.com/en/forum/105178.


Brilliant, thanks gordon. I swear I am doing my best to avoid asking a million questions.

J

Reason: