From 844b518a08b61adbf13c54d74b99f01484b7484c Mon Sep 17 00:00:00 2001 From: Pedro Gonnet <pedro.gonnet@durham.ac.uk> Date: Wed, 30 Oct 2013 15:05:46 +0000 Subject: [PATCH] better reporting. --- examples/test_bh.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/test_bh.c b/examples/test_bh.c index aa9a4e4..2ec2c10 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; } -- GitLab