summaryrefslogtreecommitdiff
path: root/gr-qtgui/lib/qtgui_time_sink_f.cc
diff options
context:
space:
mode:
authorJosh Blum2011-06-07 22:39:07 -0400
committerTom Rondeau2011-06-07 22:39:07 -0400
commiteae515a2356a140e4407945eed21e56b90bb98d9 (patch)
tree98755d38a2fa4b7bed41a38e446b6618252f8cb2 /gr-qtgui/lib/qtgui_time_sink_f.cc
parent1418dccc89f554202e33d4d743c910407e8710a6 (diff)
downloadgnuradio-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/qtgui_time_sink_f.cc')
-rw-r--r--gr-qtgui/lib/qtgui_time_sink_f.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gr-qtgui/lib/qtgui_time_sink_f.cc b/gr-qtgui/lib/qtgui_time_sink_f.cc
index 20caedac7..8fd867340 100644
--- a/gr-qtgui/lib/qtgui_time_sink_f.cc
+++ b/gr-qtgui/lib/qtgui_time_sink_f.cc
@@ -94,7 +94,7 @@ qtgui_time_sink_f::initialize()
// initialize update time to 10 times a second
set_update_time(0.1);
- highres_timespec_reset(d_last_time);
+ d_last_time = 0;
}
@@ -170,7 +170,7 @@ qtgui_time_sink_f::general_work (int noutput_items,
}
// Update the plot if its time
- if(diff_highres_timespec(d_current_time, d_last_time) > d_update_time) {
+ if(get_highres_clock() - d_last_time > d_update_time) {
d_last_time = d_current_time;
d_qApplication->postEvent(d_main_gui,
new TimeUpdateEvent(d_residbufs, d_size));