diff options
author | Josh Blum | 2011-06-07 22:39:07 -0400 |
---|---|---|
committer | Tom Rondeau | 2011-06-07 22:39:07 -0400 |
commit | eae515a2356a140e4407945eed21e56b90bb98d9 (patch) | |
tree | 98755d38a2fa4b7bed41a38e446b6618252f8cb2 /gr-qtgui/lib/SpectrumGUIClass.cc | |
parent | 1418dccc89f554202e33d4d743c910407e8710a6 (diff) | |
download | gnuradio-eae515a2356a140e4407945eed21e56b90bb98d9.tar.gz gnuradio-eae515a2356a140e4407945eed21e56b90bb98d9.tar.bz2 gnuradio-eae515a2356a140e4407945eed21e56b90bb98d9.zip |
qtgui: removed most of the functions in highResTimeFunctions.h
Diffstat (limited to 'gr-qtgui/lib/SpectrumGUIClass.cc')
-rw-r--r-- | gr-qtgui/lib/SpectrumGUIClass.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gr-qtgui/lib/SpectrumGUIClass.cc b/gr-qtgui/lib/SpectrumGUIClass.cc index fda58d78e..002e944ea 100644 --- a/gr-qtgui/lib/SpectrumGUIClass.cc +++ b/gr-qtgui/lib/SpectrumGUIClass.cc @@ -54,7 +54,7 @@ SpectrumGUIClass::SpectrumGUIClass(const uint64_t maxDataSize, _windowType = 5; - highres_timespec_reset(_lastGUIUpdateTime); + _lastGUIUpdateTime = 0; _windowOpennedFlag = false; _fftBuffersCreatedFlag = false; @@ -123,7 +123,7 @@ SpectrumGUIClass::OpenSpectrumWindow(QWidget* parent, qApp->postEvent(_spectrumDisplayForm, new QEvent(QEvent::Type(QEvent::User+3))); - highres_timespec_reset(_lastGUIUpdateTime); + _lastGUIUpdateTime = 0; // Draw Blank Display UpdateWindow(false, NULL, 0, NULL, 0, NULL, 0, get_highres_clock(), true); @@ -286,8 +286,8 @@ SpectrumGUIClass::UpdateWindow(const bool updateDisplayFlag, const highres_timespec currentTime = get_highres_clock(); const highres_timespec lastUpdateGUITime = GetLastGUIUpdateTime(); - if((diff_highres_timespec(currentTime, lastUpdateGUITime) > (4*_updateTime)) && - (GetPendingGUIUpdateEvents() > 0) && !highres_timespec_empty(lastUpdateGUITime)) { + if((currentTime - lastUpdateGUITime > (4*_updateTime)*gruel::high_res_timer_tps()) && + (GetPendingGUIUpdateEvents() > 0) && lastUpdateGUITime != 0) { // Do not update the display if too much data is pending to be displayed _droppedEntriesCount++; } |