public void Stop() { StopInternalTimer(); MidiTimerWinApi.timeEndPeriod(_resolution); MidiTimerWinApi.timeKillEvent(_timerId); }
public void Stop() { IsRunning = false; // TODO: process errors _stopwatch.Stop(); MidiTimerWinApi.timeEndPeriod(_resolution); MidiTimerWinApi.timeKillEvent(_timerId); }
private void Dispose(bool disposing) { if (_disposed) { return; } if (disposing) { } if (_timerId != NoTimerId) { MidiTimerWinApi.timeEndPeriod(_resolution); MidiTimerWinApi.timeKillEvent(_timerId); } _disposed = true; }
/// <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); }