Code Profiling & Tuning
Check out this link and read the post from Slawa about half way down.
http://www.metaquotes.net/forum/2837/
It shows how to access the win32 time functions in Kernel32.dll. I don't know what the accuracy is but the clocks are there.
Excellent reference to one of the metaquotes programmers! thank you very much, I need to focus on the nanoseconds
I will try to write something next week and release it.
I'd like to write a set of functions that record the timestamps spent on a specific section of code. I'd like to find out what my most CPU intensive regions are and know how long they take. That way I can write a few variations of my longest running parts or create optimized DLL files for the worst sections of the EA.
Does anyone know about this? I'm probably going to write a DLL that does it if not :/