From 9be82d39101398116c0974fd26a63956631df57b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 25 May 2023 15:27:21 +0200 Subject: port BS CPU to dfatool --- BS/support/timer.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'BS/support') diff --git a/BS/support/timer.h b/BS/support/timer.h index 969ef97..08027af 100755 --- a/BS/support/timer.h +++ b/BS/support/timer.h @@ -57,3 +57,10 @@ void stop(Timer *timer, int i) { } void print(Timer *timer, int i, int REP) { printf("%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