diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2023-05-31 16:14:31 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2023-05-31 16:14:31 +0200 |
commit | 0540fa9e26e2c8e7e11fcf3e5444e4981f811e1c (patch) | |
tree | a450f403c535ded297b8ffc4a0ea5675e780a3de /TRNS/support | |
parent | 0f710b4f47dfc51e3f01473995dbb6ed5844eff1 (diff) |
port TRNS to dfatool
Diffstat (limited to 'TRNS/support')
-rwxr-xr-x | TRNS/support/timer.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/TRNS/support/timer.h b/TRNS/support/timer.h index b53d95f..4d597b9 100755 --- a/TRNS/support/timer.h +++ b/TRNS/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");
+}
|