diff options
author | Tim O'Shea <tim.oshea753@gmail.com> | 2013-06-04 13:35:53 -0400 |
---|---|---|
committer | Tim O'Shea <tim.oshea753@gmail.com> | 2013-06-05 14:20:05 -0400 |
commit | 8c5d3f8b4d2b84bb214e7f7bd6b3c0d3c60df1db (patch) | |
tree | 7468b7ab1a7a0a538dcdcd466038c681cf9cd817 /gnuradio-runtime/lib/high_res_timer.cc | |
parent | 5e3fd0144cd3dde787985601416f798a37ebae86 (diff) |
runtime: adding config file + ctrlport selectable gr::high_res_timer to select clock type for performance counters
Diffstat (limited to 'gnuradio-runtime/lib/high_res_timer.cc')
-rw-r--r-- | gnuradio-runtime/lib/high_res_timer.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gnuradio-runtime/lib/high_res_timer.cc b/gnuradio-runtime/lib/high_res_timer.cc new file mode 100644 index 0000000000..37e7e322a8 --- /dev/null +++ b/gnuradio-runtime/lib/high_res_timer.cc @@ -0,0 +1,8 @@ +#include <gnuradio/high_res_timer.h> + +#ifdef GNURADIO_HRT_USE_CLOCK_GETTIME +clockid_t gr::high_res_timer_source = CLOCK_THREAD_CPUTIME_ID; +#endif + + + |