FastQuant.EventManager.SyncExchangeClockWithTick C# (CSharp) Méthode

SyncExchangeClockWithTick() private méthode

private SyncExchangeClockWithTick ( Tick tick, string funcName ) : void
tick Tick
funcName string
Résultat void
        private void SyncExchangeClockWithTick(Tick tick, string funcName)
        {
            if (tick.ExchangeDateTime > this.framework.ExchangeClock.DateTime)
            {
                this.framework.ExchangeClock.DateTime = tick.ExchangeDateTime;
            }
            else if (tick.ExchangeDateTime > this.framework.ExchangeClock.DateTime)
            {
                Console.WriteLine($"{nameof(EventManager)}::{funcName} Exchange datetime is out of synch : {tick.GetType().Name.ToLower()} datetime = {tick.ExchangeDateTime} clock datetime = {this.framework.ExchangeClock.DateTime}");
            }
        }
        #endregion