Revision eae515a2 gr-qtgui/lib/qtgui_time_sink_c.cc
| b/gr-qtgui/lib/qtgui_time_sink_c.cc | ||
|---|---|---|
| 94 | 94 |
|
| 95 | 95 |
// initialize update time to 10 times a second |
| 96 | 96 |
set_update_time(0.1); |
| 97 |
highres_timespec_reset(d_last_time);
|
|
| 97 |
d_last_time = 0;
|
|
| 98 | 98 |
} |
| 99 | 99 |
|
| 100 | 100 |
|
| ... | ... | |
| 171 | 171 |
} |
| 172 | 172 |
|
| 173 | 173 |
// Update the plot if its time |
| 174 |
if(diff_highres_timespec(d_current_time, d_last_time) > d_update_time) {
|
|
| 174 |
//if(diff_highres_timespec(d_current_time, d_last_time) > d_update_time) {
|
|
| 175 |
if(get_highres_clock() - d_last_time > d_update_time) {
|
|
| 175 | 176 |
d_last_time = d_current_time; |
| 176 | 177 |
d_qApplication->postEvent(d_main_gui, |
| 177 | 178 |
new TimeUpdateEvent(d_residbufs, d_size)); |
Also available in: Unified diff