summaryrefslogtreecommitdiff
path: root/RED/support
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2023-05-24 13:41:52 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2023-05-24 13:41:52 +0200
commitf27c88aedeba2fe4927645ef916e3f60d8fb939b (patch)
tree84e2c0f0fa8cc0f874a2f36471195f1bc4ea8983 /RED/support
parent97ba6163d9609df945d6b2bd5ef9b3537f3f56ba (diff)
RED baseline: add dfatool support
Diffstat (limited to 'RED/support')
-rwxr-xr-xRED/support/timer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/RED/support/timer.h b/RED/support/timer.h
index eedc385..5c00213 100755
--- a/RED/support/timer.h
+++ b/RED/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");
+}