summaryrefslogtreecommitdiff
path: root/gr-qtgui/src/lib/highResTimeFunctions.h
diff options
context:
space:
mode:
authorTom Rondeau2010-06-29 21:12:33 -0400
committerTom Rondeau2010-06-29 21:12:33 -0400
commit8c55d94d3839fc0a192acd6a39999ee5f589221e (patch)
treefb377396982d5892bafeabf164ef7580ca490b78 /gr-qtgui/src/lib/highResTimeFunctions.h
parentec0fcd99133c7f6a4e63830a9cf6674c4abc95bf (diff)
downloadgnuradio-8c55d94d3839fc0a192acd6a39999ee5f589221e.tar.gz
gnuradio-8c55d94d3839fc0a192acd6a39999ee5f589221e.tar.bz2
gnuradio-8c55d94d3839fc0a192acd6a39999ee5f589221e.zip
From my reading, we should never need to define the timespec struct (so we will wait until this bites me).
Diffstat (limited to 'gr-qtgui/src/lib/highResTimeFunctions.h')
-rw-r--r--gr-qtgui/src/lib/highResTimeFunctions.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/gr-qtgui/src/lib/highResTimeFunctions.h b/gr-qtgui/src/lib/highResTimeFunctions.h
index dc5e1bb80..251bbad8b 100644
--- a/gr-qtgui/src/lib/highResTimeFunctions.h
+++ b/gr-qtgui/src/lib/highResTimeFunctions.h
@@ -264,16 +264,7 @@ get_highres_clock(struct timespec* ret)
#else
-// Test to see if timespec is defined; if not, define it here
-#if !defined __timespec_defined
-typedef struct _timespec
-{
- long int tv_sec;
- long int tv_nsec;
-} timespec;
-#endif
-
-// Trick the system into thinking it has an nsec timer
+// Trick timer functions into thinking it has an nsec timer
// but only use the low resolution (usec) timer.
static inline void
get_highres_clock(struct timespec* ret)