diff options
Diffstat (limited to 'test/monniaux/clock.c')
-rw-r--r-- | test/monniaux/clock.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/monniaux/clock.c b/test/monniaux/clock.c index 300cdc7f..e91adc99 100644 --- a/test/monniaux/clock.c +++ b/test/monniaux/clock.c @@ -3,6 +3,10 @@ static cycle_t total_clock, last_start; +void clock_prepare(void) { + cycle_count_config(); +} + void clock_start(void) { last_start = get_cycle(); } @@ -16,5 +20,5 @@ cycle_t get_total_clock(void) { } void print_total_clock(void) { - printf("cycles: %llu\n", total_clock); + printf("cycles: %lu\n", total_clock); } |