diff options
author | Don Ward | 2011-03-25 11:53:04 -0400 |
---|---|---|
committer | Tom Rondeau | 2011-03-25 11:53:04 -0400 |
commit | 64dac6a1f62fb8484e879f0d20ee60bc02da179c (patch) | |
tree | 0e0ab0ad264a5af0d0f6256260295b8563179da5 /gnuradio-core/src/tests/benchmark_dotprod_ccc.cc | |
parent | 34313eace681a82e230c38a8cd26c0001ee823ea (diff) | |
download | gnuradio-64dac6a1f62fb8484e879f0d20ee60bc02da179c.tar.gz gnuradio-64dac6a1f62fb8484e879f0d20ee60bc02da179c.tar.bz2 gnuradio-64dac6a1f62fb8484e879f0d20ee60bc02da179c.zip |
Fixing missing include files and various other patches for Windows build issues.
Diffstat (limited to 'gnuradio-core/src/tests/benchmark_dotprod_ccc.cc')
-rw-r--r-- | gnuradio-core/src/tests/benchmark_dotprod_ccc.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gnuradio-core/src/tests/benchmark_dotprod_ccc.cc b/gnuradio-core/src/tests/benchmark_dotprod_ccc.cc index 5d53a9f89..8ef26a40d 100644 --- a/gnuradio-core/src/tests/benchmark_dotprod_ccc.cc +++ b/gnuradio-core/src/tests/benchmark_dotprod_ccc.cc @@ -56,7 +56,8 @@ benchmark (fir_maker_t filter_maker, const char *implementation_name) { int i; gr_complex coeffs[NTAPS]; - gr_complex input[BLOCK_SIZE + NTAPS]; + //gr_complex input[BLOCK_SIZE + NTAPS]; // not always 16-bit aligned + gr_complex *input = new gr_complex[BLOCK_SIZE + NTAPS]; long n; gr_complex result; #ifdef HAVE_SYS_RESOURCE_H @@ -86,7 +87,7 @@ benchmark (fir_maker_t filter_maker, const char *implementation_name) exit (1); } #else - clock_start= (double) clock() * (1000000. / CLOCKS_PER_SEC); + clock_start= (double) clock() / CLOCKS_PER_SEC; #endif // do the actual work @@ -116,7 +117,7 @@ benchmark (fir_maker_t filter_maker, const char *implementation_name) double total = user + sys; #else - clock_end = (double) clock() * (1000000. / CLOCKS_PER_SEC); + clock_end = (double) clock() / CLOCKS_PER_SEC; double total = clock_end - clock_start; #endif @@ -126,6 +127,7 @@ benchmark (fir_maker_t filter_maker, const char *implementation_name) implementation_name, NTAPS, (double) TOTAL_TEST_SIZE, total, macs / total); delete f; + delete [] input; } static void |