Exemplo n.º 1
0
        private HyperTimer(ITimerServices timerServices)
        {
            if (timerServices == null)
                throw new ArgumentNullException("timerServices");

            _timerServices = timerServices;
            _timerServices.Elapsed += TimerServices_ElapsedHandler;
            CyclesLeft = -1;
        }
Exemplo n.º 2
0
        private HyperTimer(ITimerServices timerServices)
        {
            if (timerServices == null)
            {
                throw new ArgumentNullException("timerServices");
            }

            _timerServices          = timerServices;
            _timerServices.Elapsed += TimerServices_ElapsedHandler;
            CyclesLeft              = -1;
        }