summaryrefslogtreecommitdiff
path: root/HST-L/support
diff options
context:
space:
mode:
authorBirte Friesel <dfriesel@uos.de>2023-07-24 13:38:31 +0200
committerBirte Friesel <dfriesel@uos.de>2023-07-24 13:38:31 +0200
commit2ba50934241c0ed7e6e56f003f96b24bf75c35f3 (patch)
tree0ec2b16ca3dddeec57ffb5936c82e7286d6a5727 /HST-L/support
parentaf3869489b84c2264c29211b29d8baced926ae0d (diff)
port HST-L to dfatool
Diffstat (limited to 'HST-L/support')
-rwxr-xr-xHST-L/support/timer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/HST-L/support/timer.h b/HST-L/support/timer.h
index eedc385..5c00213 100755
--- a/HST-L/support/timer.h
+++ b/HST-L/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");
+}