示例#1
0
        protected override int GetComponent(int component, TimeSpan cut, TimeSpan increment)
        {
            var next = Snapshot <= TimeSpan.Zero ? (-cut) - increment : cut - TimeSpan.FromTicks(1);

            ObservableTimer.Get(_zone, _zero - next).OnGet();
            ObservableTimer.Get(_zone, _zero - next - increment).OnGet();
            return(component);
        }
 T GetComponent <T>(T component, DateTime prev, DateTime next)
 {
     ObservableTimer.Get(_zone, prev).OnGet();
     ObservableTimer.Get(_zone, next).OnGet();
     return(component);
 }
 ObservableTimer GetTimer(DateTime comparand)
 {
     return(ObservableTimer.Get(_zone, comparand - _delta));
 }
示例#4
0
 ObservableTimer GetTimer(TimeSpan comparand)
 {
     return(ObservableTimer.Get(_zone, _zero - comparand));
 }