/// <inheritdoc /> public void Dispose() { StopwatchUpdate.Stop(); StopwatchUpdate = default; StopwatchFrame.Stop(); StopwatchFrame = default; }
private void DisposeStopwatchUpdate() { if (StopwatchUpdate == null) { throw new NullReferenceException("StopwatchUpdate in Engine\\Render\\FramesPerSecondCounter is NULL"); } StopwatchUpdate.Stop(); StopwatchUpdate = default; }