In an earlier post (viewtopic.php?f=1&t=46208#p103344), MultiCharts support gave us the attached code to measure elapsed time with approximately 15 ms resolution. It uses the "GetTickCount" Windows call.
I would like to use the QueryPerformanceCounter Windows call instead. It has finer resolution in most situations. I've tried something like this:
Code: Select all
external: "kernel32.dll", bool, "QueryPerformanceCounter", int;
More info on these timer-related Windows calls:
http://msdn.microsoft.com/en-us/library ... 85%29.aspx
https://stackoverflow.com/questions/155 ... ncecounter
https://stackoverflow.com/questions/229 ... using-hpet
Thanks in advance...