ea-health-monitor/mql5/Include/EAHealth/EAClock.mqh
Allan Niñal Allan Niñal 286e60f707 Free source regenerated: Pro-only code removed from the engine, debug log added
Generated by the publish tool from the private source; all publish gates pass, compile 0 errors 0 warnings on MT5 and MT4.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-31 08:12:10 +08:00
21 lines
939 B
MQL5
//+------------------------------------------------------------------+
//| 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