diff options
-rw-r--r-- | test/monniaux/clock.c | 4 | ||||
-rw-r--r-- | test/monniaux/clock.h | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/test/monniaux/clock.c b/test/monniaux/clock.c index d72528d8..7611a2ee 100644 --- a/test/monniaux/clock.c +++ b/test/monniaux/clock.c @@ -19,6 +19,10 @@ cycle_t get_total_clock(void) { return total_clock; } +cycle_t get_current_cycle(void) { + return get_cycle(); +} + void print_total_clock(void) { printf("cycles: %lu\n", total_clock); } diff --git a/test/monniaux/clock.h b/test/monniaux/clock.h index 43fd7c5c..be8fa172 100644 --- a/test/monniaux/clock.h +++ b/test/monniaux/clock.h @@ -4,5 +4,6 @@ void clock_prepare(void); void clock_stop(void); void clock_start(void); cycle_t get_total_clock(void); +cycle_t get_current_cycle(void); void print_total_clock(void); void printerr_total_clock(void); |