summaryrefslogtreecommitdiff
path: root/TS/support
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2023-05-31 15:44:51 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2023-05-31 15:44:51 +0200
commit20e2656d51a2d13a6d4783b97933e8098a1ff158 (patch)
treeaaefe7575476ab8f8ac3032fa4dbc8cb3bb6304a /TS/support
parentea5352505750377a1de36c1fa12e012dc0d3af4c (diff)
TS: port CPU and NMC versions to dfatool
Diffstat (limited to 'TS/support')
-rwxr-xr-xTS/support/timer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/TS/support/timer.h b/TS/support/timer.h
index 0ea7739..a0747b2 100755
--- a/TS/support/timer.h
+++ b/TS/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");
+}