Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 T GetComponent <T>(T component, DateTime prev, DateTime next)
 {
     IndependentTimer.Get(_zone, prev).OnGet();
     IndependentTimer.Get(_zone, next).OnGet();
     return(component);
 }
Ejemplo n.º 3
0
 IndependentTimer GetTimer(DateTime comparand)
 {
     return(IndependentTimer.Get(_zone, comparand - _delta));
 }
Ejemplo n.º 4
0
 IndependentTimer GetTimer(TimeSpan comparand)
 {
     return(IndependentTimer.Get(_zone, _zero + comparand));
 }