Commit 7d3cebc4 authored by Martin Storsjö's avatar Martin Storsjö
Browse files

checkasm: Don't use readtime for checkasm seed

On ARM, the readtime implementations are instructions that might
not always be allowed at runtime (depending on whether the kernel
has allowed user mode code to access the cycle counter registers).
In order to allow building checkasm with the option for benchmarking,
while still running on devices where benchmarking isn't possible,
don't use readtime anywhere unless --bench has been specified.

Use GetTickCount for the seed on windows, and gettimeofday on unix.
parent d9b1ca87
Pipeline #1037 passed with stage
in 1 minute and 58 seconds