summaryrefslogtreecommitdiff
path: root/HST-S/support
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2023-06-02 15:27:22 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2023-06-02 15:27:22 +0200
commit7e0597a2ddb2d07ff7b72a6fa47245774e04f964 (patch)
tree51dbd792f11428c5f61283fb5de3fc7d4f9606f7 /HST-S/support
parentf438d54780af4ae90638f5d57acdd5e98d6596e9 (diff)
port HST-S to dfatool
Diffstat (limited to 'HST-S/support')
-rwxr-xr-xHST-S/support/timer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/HST-S/support/timer.h b/HST-S/support/timer.h
index eedc385..5c00213 100755
--- a/HST-S/support/timer.h
+++ b/HST-S/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");
+}