summaryrefslogtreecommitdiff
path: root/UNI/support
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2023-05-25 08:44:21 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2023-05-25 08:44:21 +0200
commit19d1222c6d179f90c846b8fcbbb2bbfdc05a4587 (patch)
tree01968c7ffecae31f63e4d901633cf0614cd55269 /UNI/support
parent437739abce608132f2bc96ff18796937a3a40c9f (diff)
port UNI to dfatool
Diffstat (limited to 'UNI/support')
-rwxr-xr-xUNI/support/timer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/UNI/support/timer.h b/UNI/support/timer.h
index b53d95f..4d597b9 100755
--- a/UNI/support/timer.h
+++ b/UNI/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");
+}