diff options
Diffstat (limited to 'test/monniaux/clock.c')
-rw-r--r-- | test/monniaux/clock.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/monniaux/clock.c b/test/monniaux/clock.c index 506dadc3..300cdc7f 100644 --- a/test/monniaux/clock.c +++ b/test/monniaux/clock.c @@ -1,4 +1,5 @@ #include "cycles.h" +#include <stdio.h> static cycle_t total_clock, last_start; @@ -13,3 +14,7 @@ void clock_stop(void) { cycle_t get_total_clock(void) { return total_clock; } + +void print_total_clock(void) { + printf("cycles: %llu\n", total_clock); +} |