summaryrefslogtreecommitdiff
path: root/SEL/support
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2023-05-25 09:00:26 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2023-05-25 09:00:26 +0200
commitb3235ccc79c0783e95c1c5524b8b421d2d048cf7 (patch)
tree20e04b64fa79d4bc4f02c151de3af423ee690784 /SEL/support
parent19d1222c6d179f90c846b8fcbbb2bbfdc05a4587 (diff)
port SEL cpu baseline to dfatool
Diffstat (limited to 'SEL/support')
-rwxr-xr-xSEL/support/timer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/SEL/support/timer.h b/SEL/support/timer.h
index b53d95f..4d597b9 100755
--- a/SEL/support/timer.h
+++ b/SEL/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");
+}