protected override int GetComponent(int component, TimeSpan cut, TimeSpan increment) { var next = Snapshot >= TimeSpan.Zero ? cut + increment : (-cut) + TimeSpan.FromTicks(1); IndependentTimer.Get(_zone, _zero + next).OnGet(); IndependentTimer.Get(_zone, _zero + next - increment).OnGet(); return(component); }
T GetComponent <T>(T component, DateTime prev, DateTime next) { IndependentTimer.Get(_zone, prev).OnGet(); IndependentTimer.Get(_zone, next).OnGet(); return(component); }
IndependentTimer GetTimer(DateTime comparand) { return(IndependentTimer.Get(_zone, comparand - _delta)); }
IndependentTimer GetTimer(TimeSpan comparand) { return(IndependentTimer.Get(_zone, _zero + comparand)); }