diff options
Diffstat (limited to 'SCAN-SSA/support/timer.h')
-rw-r--r--[-rwxr-xr-x] | SCAN-SSA/support/timer.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/SCAN-SSA/support/timer.h b/SCAN-SSA/support/timer.h index b53d95f..194569f 100755..100644 --- a/SCAN-SSA/support/timer.h +++ b/SCAN-SSA/support/timer.h @@ -56,4 +56,9 @@ void stop(Timer *timer, int i) { (timer->stopTime[i].tv_usec - timer->startTime[i].tv_usec);
}
-void print(Timer *timer, int i, int REP) { printf("Time (ms): %f\t", timer->time[i] / (1000 * REP)); }
+void printall(Timer *timer) {
+ for (int i = 0; i <= 5; i++) {
+ printf(" timer%d_us=%f", i, timer->time[i]);
+ }
+ printf("\n");
+}
|