aboutsummaryrefslogtreecommitdiffstats
path: root/test/monniaux/clock.c
diff options
context:
space:
mode:
authorDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-01-30 16:08:49 +0100
committerDavid Monniaux <david.monniaux@univ-grenoble-alpes.fr>2019-01-30 16:08:49 +0100
commitd8bef07031a1928e7e071c47f3d3702d4d9a4ca3 (patch)
tree610f33e71ea2cd961530490c06ad4c08b1633ee6 /test/monniaux/clock.c
parent13b1453843f7cced14093f31ba2aac05a0e0cc43 (diff)
downloadcompcert-kvx-d8bef07031a1928e7e071c47f3d3702d4d9a4ca3.tar.gz
compcert-kvx-d8bef07031a1928e7e071c47f3d3702d4d9a4ca3.zip
remove preprocessor directives about SIZE_TYPE, now useless (long is now 8 bytes like in gcc)
Diffstat (limited to 'test/monniaux/clock.c')
-rw-r--r--test/monniaux/clock.c5
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);
+}