Skip to content

Commit

Permalink
Merge pull request wolfSSL#7065 from miyazakh/fix_ra6m3
Browse files Browse the repository at this point in the history
fix benchmark compile error
  • Loading branch information
cconlon authored Dec 14, 2023
2 parents c021e3e + 3af91c2 commit 1b76f6d
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion wolfcrypt/benchmark/benchmark.c
Original file line number Diff line number Diff line change
Expand Up @@ -12190,7 +12190,6 @@ void bench_sphincsKeySign(byte level, byte optim)
/* prototype definition */
int construct_argv();
extern char* __argv[22];
#endif

/* current_time(reset)
*
Expand Down Expand Up @@ -12277,7 +12276,24 @@ void bench_sphincsKeySign(byte level, byte optim)
#endif /* configTICK_RATE_HZ */

return ret;

} /* current_time */
#else
/* current_time(reset)
*
* Benchmark passage of time, in fractional seconds.
* [reset] is non zero to adjust timer or counter to zero
*
* Use care when repeatedly calling calling. See implementation. */
double current_time(int reset)
{
portTickType tickCount;
/* tick count == ms, if configTICK_RATE_HZ is set to 1000 */
tickCount = xTaskGetTickCount();
return (double)tickCount / 1000;
}
#endif


#elif defined (WOLFSSL_TIRTOS)

Expand Down

0 comments on commit 1b76f6d

Please sign in to comment.