diff --git a/examples/test_bh.c b/examples/test_bh.c index aa9a4e4a0d8f48b0f321f831af1f72ee3a7b802e..2ec2c104dddf04a05a879f0c7cb223da1fd0b27e 100644 --- a/examples/test_bh.c +++ b/examples/test_bh.c @@ -616,7 +616,7 @@ void test_bh ( int N , int nr_threads , int runs ) { struct cell *root; struct part *parts; struct qsched s; - ticks tic, tot_setup = 0, tot_run = 0; + ticks tic, toc_run, tot_setup = 0, tot_run = 0; /* Runner function. */ void runner ( int type , void *data ) { @@ -679,7 +679,9 @@ void test_bh ( int N , int nr_threads , int runs ) { /* Execute the tasks. */ tic = getticks(); qsched_run( &s , nr_threads , runner ); - tot_run += getticks() - tic; + toc_run = getticks(); + message( "%ith run took %lli ticks..." , k , toc_run - tic ); + tot_run += toc_run - tic; }