From ceedcb7e17772b93e038f474b6ce5fce9e37be4a Mon Sep 17 00:00:00 2001 From: Mazet Laurent Date: Fri, 17 Oct 2025 16:08:37 +0200 Subject: [PATCH] add code for x86 --- load.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/load.c b/load.c index b1062f1..5ec043a 100644 --- a/load.c +++ b/load.c @@ -185,6 +185,9 @@ double estimate_tics_clock (void) double estimate_cpu_clock (void) { +#ifndef __arm__ + return estimate_tics_clock (); +#else struct timeval tv1; gettimeofday (&tv1, NULL); @@ -220,6 +223,7 @@ double estimate_cpu_clock (void) ((double)tv1.tv_sec + tv1.tv_usec * 1e-6); return instructions / runtime; +#endif /* __arm__ */ } /* main function */ -- 2.30.2