private void UpdateTicks(DateTime dt) { if (!dt.Kind.HasFlag(DateTimeKind.Utc)) { dt = dt.ToUniversalTime(); } _LastGlobalTick = dt; _NextGlobalTick = _Info.FindAfter(dt); }
public void InvalidateNextTick(DateTime dt) { if (!_Enabled) { _NextGlobalTick = null; return; } _NextGlobalTick = _Info.FindAfter(dt); if (_NextGlobalTick != null && _NextGlobalTick < Now) { InvalidateNextTick(_NextGlobalTick.Value); } }
private void UpdateTicks(DateTime dt) { _LastGlobalTick = dt; _NextGlobalTick = _Info.FindAfter(dt); }