Download MetaTrader 5
To add comments, please log in or register
Having questions to the author of an article? Discuss them on the Forum!
Alain Verleyen
Moderator
29647
Alain Verleyen 2014.06.24 07:00  
autoabacus:

...
Very interesting. Thank you.
Jon Grah
367
Jon Grah 2015.09.07 06:07  

I noticed that mt4 now has a GetMicroSecondCount(). Would this be superior to using GetTickCount function in terms of precision?

What would be the advantage/disadvantage of using vs GetMicrosecondCount() vs GetTickCount()?  Does it use more resources?  I would think the MicroSec resolution would be a superior function to MilliSec.  You can always convert MicroSec to Millisec or lower resolution, but you cannot take Millisec and get MicroSecs or higher resolution.


Why MQ suggested GTC function vs GMicroC for millisecond timestamps?  I understand that maybe before there was no GMicroC function.  But now that there is, why not update the documentation to recommend GMicroC for higher timestamp resolution?

Zirkon
123
Zirkon 2015.09.07 07:58  
4evermaat:

I noticed that mt4 now has a GetMicroSecondCount(). Would this be superior to using GetTickCount function in terms of precision?

What would be the advantage/disadvantage of using vs GetMicrosecondCount() vs GetTickCount()?  Does it use more resources?  I would think the MicroSec resolution would be a superior function to MilliSec.  You can always convert MicroSec to Millisec or lower resolution, but you cannot take Millisec and get MicroSecs or higher resolution.


Why MQ suggested GTC function vs GMicroC for millisecond timestamps?  I understand that maybe before there was no GMicroC function.  But now that there is, why not update the documentation to recommend GMicroC for higher timestamp resolution?

Seem you like to complain You asked for milliseconds and now you have microseconds. Anyway it will be better if TimeCurrent() (and other time returned from the server) returns milliseconds.

If you want to talk to Metaquotes, you should write to ServiceDesk, they very rarely reply to this forum.

Ovo Cz
2988
Ovo Cz 2015.09.07 10:39  
4evermaat:

I noticed that mt4 now has a GetMicroSecondCount(). Would this be superior to using GetTickCount function in terms of precision?

What would be the advantage/disadvantage of using vs GetMicrosecondCount() vs GetTickCount()?  Does it use more resources?  I would think the MicroSec resolution would be a superior function to MilliSec.  You can always convert MicroSec to Millisec or lower resolution, but you cannot take Millisec and get MicroSecs or higher resolution.


Why MQ suggested GTC function vs GMicroC for millisecond timestamps?  I understand that maybe before there was no GMicroC function.  But now that there is, why not update the documentation to recommend GMicroC for higher timestamp resolution?

While GetTickCount is a core Windows API function (since the Windows beginning), the other function required (though simple) implementation. They are not related to each other.
Jon Grah
367
Jon Grah 2015.09.08 00:23  
zirkoner:

Seem you like to complain You asked for milliseconds and now you have microseconds. Anyway it will be better if TimeCurrent() (and other time returned from the server) returns milliseconds.

If you want to talk to Metaquotes, you should write to ServiceDesk, they very rarely reply to this forum.

Not complaining.  Just wondering why now that a new function is available that is more precise, they (or anyone) would still recommend the older function.  I have written to the service desk.

Ovo:
While GetTickCount is a core Windows API function (since the Windows beginning), the other function required (though simple) implementation. They are not related to each other.

What implementation does GetMicroSecondCount() use to get microsecond accuracy in timestamps?

Ovo Cz
2988
Ovo Cz 2015.09.08 09:01  
4evermaat:

What implementation does GetMicroSecondCount() use to get microsecond accuracy in timestamps?

I have a clear idea how to code it, but I am not the MQ coder. Anyway, why do you need to know it if they already made it working for you?
/ /1234
To add comments, please log in or register