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

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

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