how to obtain current time in miliseconds precision?

 

Hi,


Is it possible to get current time up to miliseconds precision? Any workaround if no embedded mql4 functions available?


Thanks!

Maciej

 

see here and can find in Common Functions of editor help

 
fbj:

see here and can find in Common Functions of editor help

Thanks. I didn't explain the context however. I need something that would work with Strategy Tester.

Maciej

 

You'll have to make calls to WinAPI for that precision.

IF you just want a timer (with about 16ms accuracy), GetTickCount() might do.

Reason: