summaryrefslogtreecommitdiff
path: root/SCAN-RSS/support/timer.h
diff options
context:
space:
mode:
Diffstat (limited to 'SCAN-RSS/support/timer.h')
-rwxr-xr-xSCAN-RSS/support/timer.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/SCAN-RSS/support/timer.h b/SCAN-RSS/support/timer.h
index b53d95f..4d597b9 100755
--- a/SCAN-RSS/support/timer.h
+++ b/SCAN-RSS/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");
+}