Example #1
0
        private HyperTimer(ITimerServices timerServices)
        {
            if (timerServices == null)
                throw new ArgumentNullException("timerServices");

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

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