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?
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.
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.
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?
A Datetime is seconds from epoch. Cast to a long and multiply by 1000. No need for all that.
You are not considering that in some cases (like mine) I needed to know the current instant (milliseconds precision) of the system to compare with a placed order TimeMsc(). In that case, what you said is not valid.
You are not considering that in some cases (like mine) I needed to know the current instant (milliseconds precision) of the system to compare with a placed order TimeMsc(). In that case, what you said is not valid.
Allow the use of cookies to log in to the MQL5.com website.
Please enable the necessary setting in your browser, otherwise you will not be able to log in.
You are signed in. Two-factor authentication has been disabled. Set it up again and scan a new QR code, or continue with two-factor authentication disabled.
...
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?
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.
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.
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.
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?
What implementation does GetMicroSecondCount() use to get microsecond accuracy in timestamps?
To get system time as milli seconds from epoch:
A Datetime is seconds from epoch. Cast to a long and multiply by 1000. No need for all that.
A Datetime is seconds from epoch. Cast to a long and multiply by 1000. No need for all that.
You are not considering that in some cases (like mine) I needed to know the current instant (milliseconds precision) of the system to compare with a placed order TimeMsc(). In that case, what you said is not valid.
You are not considering that in some cases (like mine) I needed to know the current instant (milliseconds precision) of the system to compare with a placed order TimeMsc(). In that case, what you said is not valid.