It has become a defacto standard to measure time (since there is no way a computer knows how to count time but it can count MICROSECONDS (which is actually a microprocessor default unit) and makes for a good way to synchronize devices that are not necessarily connected to the internet.
It has become a defacto standard to measure time (since there is no way a computer knows how to count time but it can count MICROSECONDS (which is actually a microprocessor default unit) and makes for a good way to synchronize devices that are not necessarily connected to the internet.
The current Currentime() function is getting the time but in seconds not in milliseconds, can anyone help me if I want to get the current time in milliseconds using EA.
Thanks
You can use WinAPI function GetSystemTime from header Include\WinAPI\sysinfoapi.mqh:
Thank you guys so much
Here is the code I use for getting milliseconds unix timestamp
How useful can it be to know how many milliseconds passed since 1970.01.01?
For example, if you want to control for exact time of new candle open, instead of waiting for the first tick within the candle.
How useful can it be to know how many milliseconds passed since 1970.01.01?
LOL that's what EVERY COMPUTER SYSTEM IN THE WORLD is based into ... from your Applewatch to your phone to GPS satelite systems ..
ALL "IT" time begins in 1970/01/01 at 00:00:00 UTC+0
https://en.wikipedia.org/wiki/Unix_time
It has become a defacto standard to measure time (since there is no way a computer knows how to count time but it can count MICROSECONDS (which is actually a microprocessor default unit) and makes for a good way to synchronize devices that are not necessarily connected to the internet.
LOL that's what EVERY COMPUTER SYSTEM IN THE WORLD is based into ... from your Applewatch to your phone to GPS satelite systems ..
ALL "IT" time begins in 1970/01/01 at 00:00:00 UTC+0
https://en.wikipedia.org/wiki/Unix_time
It has become a defacto standard to measure time (since there is no way a computer knows how to count time but it can count MICROSECONDS (which is actually a microprocessor default unit) and makes for a good way to synchronize devices that are not necessarily connected to the internet.
Hi team,
The current Currentime() function is getting the time but in seconds not in milliseconds, can anyone help me if I want to get the current time in milliseconds using EA.
Thanks
You can use WinAPI function GetSystemTime from header Include\WinAPI\sysinfoapi.mqh: