summaryrefslogtreecommitdiff
path: root/VA/support
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2023-05-24 17:00:30 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2023-05-24 17:00:30 +0200
commit437739abce608132f2bc96ff18796937a3a40c9f (patch)
tree1d3a03640a95efb3607cdb8035c60e41c625e322 /VA/support
parentea4766f44b11b0feca8c32f2d44d9dd5a274bf93 (diff)
VA: port to dfatool
Diffstat (limited to 'VA/support')
-rwxr-xr-xVA/support/timer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/VA/support/timer.h b/VA/support/timer.h
index eedc385..5c00213 100755
--- a/VA/support/timer.h
+++ b/VA/support/timer.h
@@ -57,3 +57,10 @@ void stop(Timer *timer, int i) {
}
void print(Timer *timer, int i, int REP) { printf("Time (ms): %f\t", timer->time[i] / (1000 * REP)); }
+
+void printall(Timer *timer, int maxt) {
+ for (int i = 0; i <= maxt; i++) {
+ printf(" timer%d_us=%f", i, timer->time[i]);
+ }
+ printf("\n");
+}