From 2ba50934241c0ed7e6e56f003f96b24bf75c35f3 Mon Sep 17 00:00:00 2001 From: Birte Friesel Date: Mon, 24 Jul 2023 13:38:31 +0200 Subject: port HST-L to dfatool --- HST-L/support/timer.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'HST-L/support') diff --git a/HST-L/support/timer.h b/HST-L/support/timer.h index eedc385..5c00213 100755 --- a/HST-L/support/timer.h +++ b/HST-L/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"); +} -- cgit v1.2.3