From: Mazet Laurent Date: Fri, 17 Oct 2025 14:08:37 +0000 (+0200) Subject: add code for x86 X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=ceedcb7e17772b93e038f474b6ce5fce9e37be4a;p=benchmarks.git add code for x86 --- 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 */