diff options
Diffstat (limited to 'gr-qtgui/lib/highResTimeFunctions.h')
-rw-r--r-- | gr-qtgui/lib/highResTimeFunctions.h | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/gr-qtgui/lib/highResTimeFunctions.h b/gr-qtgui/lib/highResTimeFunctions.h index 18cf66ede..6b3844901 100644 --- a/gr-qtgui/lib/highResTimeFunctions.h +++ b/gr-qtgui/lib/highResTimeFunctions.h @@ -23,41 +23,14 @@ #ifndef HIGH_RES_TIME_FUNCTIONS_H #define HIGH_RES_TIME_FUNCTIONS_H -#include <cmath> #include <gruel/high_res_timer.h> typedef gruel::high_res_timer_type highres_timespec; -static inline void -highres_timespec_reset(highres_timespec &ret) -{ - ret = 0; -} - -static inline highres_timespec -highres_timespec_add(const highres_timespec &t1, double t) -{ - return t1 + t*gruel::high_res_timer_tps(); -} - -static inline double -diff_highres_timespec(const highres_timespec &t1, - const highres_timespec &t0) -{ - return std::abs(double(t1 - t0)/gruel::high_res_timer_tps()); -} - static inline highres_timespec get_highres_clock() { return gruel::high_res_timer_now(); } -static inline bool -highres_timespec_empty(const highres_timespec &t) -{ - return t == 0; -} - - #endif /* HIGH_RES_TIME_FUNCTIONS_H */ |