diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2023-05-25 15:27:21 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2023-05-25 15:27:21 +0200 |
commit | 9be82d39101398116c0974fd26a63956631df57b (patch) | |
tree | de330acec4e4739852b1766219c780885258c692 /BS/baselines/cpu/timer.h | |
parent | 5c008581ebb873b04e68b38cdec619600b4bcb5d (diff) |
port BS CPU to dfatool
Diffstat (limited to 'BS/baselines/cpu/timer.h')
-rwxr-xr-x | BS/baselines/cpu/timer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/BS/baselines/cpu/timer.h b/BS/baselines/cpu/timer.h index 969ef97..08027af 100755 --- a/BS/baselines/cpu/timer.h +++ b/BS/baselines/cpu/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");
+}
|