Beispiel #1
0
        public void Stop()
        {
            StopInternalTimer();

            MidiTimerWinApi.timeEndPeriod(_resolution);
            MidiTimerWinApi.timeKillEvent(_timerId);
        }
Beispiel #2
0
        public void Stop()
        {
            IsRunning = false;

            // TODO: process errors

            _stopwatch.Stop();
            MidiTimerWinApi.timeEndPeriod(_resolution);
            MidiTimerWinApi.timeKillEvent(_timerId);
        }
Beispiel #3
0
        private void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
            }

            if (_timerId != NoTimerId)
            {
                MidiTimerWinApi.timeEndPeriod(_resolution);
                MidiTimerWinApi.timeKillEvent(_timerId);
            }

            _disposed = true;
        }
Beispiel #4
0
        /// <summary>
        /// Releases all resources used by the current tick generator.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
            }

            if (IsRunning)
            {
                MidiTimerWinApi.timeEndPeriod(_resolution);
                MidiTimerWinApi.timeKillEvent(_timerId);
            }

            _disposed = true;
        }
 /// <summary>
 /// Stops a tick generator.
 /// </summary>
 protected override void Stop()
 {
     MidiTimerWinApi.timeEndPeriod(_resolution);
     MidiTimerWinApi.timeKillEvent(_timerId);
 }