| //+------------------------------------------------------------------+
|
| //| EAClock.mqh |
|
| //| Copyright 2026, Allan Niñal |
|
| //| https://www.allanninal.dev/mql5 |
|
| //+------------------------------------------------------------------+
|
| //| The millisecond clock of the panel: wall clock live, simulated |
|
| //| server time in the tester. |
|
| //+------------------------------------------------------------------+
|
| // SPDX-License-Identifier: LicenseRef-PolyForm-Noncommercial-1.0.0 (see LICENSE)
|
| #ifndef EACLOCK_MQH
|
| #define EACLOCK_MQH
|
|
|
| //--- "now" in ms: wall clock live, simulated server time in the tester (which runs far faster than real time)
|
| ulong SDNowMs()
|
| {
|
| if(MQLInfoInteger(MQL_TESTER))
|
| return((ulong)TimeCurrent()*1000);
|
| return(GetTickCount64());
|
| }
|
|
|
| #endif
|