예제 #1
0
        private void UpdateTicks(DateTime dt)
        {
            if (!dt.Kind.HasFlag(DateTimeKind.Utc))
            {
                dt = dt.ToUniversalTime();
            }

            _LastGlobalTick = dt;
            _NextGlobalTick = _Info.FindAfter(dt);
        }
예제 #2
0
        public void InvalidateNextTick(DateTime dt)
        {
            if (!_Enabled)
            {
                _NextGlobalTick = null;
                return;
            }

            _NextGlobalTick = _Info.FindAfter(dt);

            if (_NextGlobalTick != null && _NextGlobalTick < Now)
            {
                InvalidateNextTick(_NextGlobalTick.Value);
            }
        }
예제 #3
0
파일: Schedule.cs 프로젝트: LordEnigma/UO
 private void UpdateTicks(DateTime dt)
 {
     _LastGlobalTick = dt;
     _NextGlobalTick = _Info.FindAfter(dt);
 }