Skip to content

Commit f8b671f

Browse files
committed
For native sim switch to ms sleep for benchmark
1 parent 00c63cf commit f8b671f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

wolfcrypt/benchmark/benchmark.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15934,7 +15934,11 @@ void bench_sphincsKeySign(byte level, byte optim)
1593415934
int64_t t;
1593515935
(void)reset;
1593615936
#if defined(CONFIG_ARCH_POSIX)
15937-
k_cpu_idle();
15937+
#if defined(CONFIG_BOARD_NATIVE_SIM)
15938+
k_msleep(1);
15939+
#else
15940+
k_cpu_idle();
15941+
#endif
1593815942
#endif
1593915943
t = k_uptime_get(); /* returns current uptime in milliseconds */
1594015944
return (double)(t / 1000);

0 commit comments

Comments
 (0)