mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 01:05:40 +01:00
Timing self test: shorten redundant tests
We don't need to test multiple delays in a self-test. Save 5s of busy-wait.
This commit is contained in:
parent
8873bcc4de
commit
ada3ee8b9d
@ -422,8 +422,9 @@ int mbedtls_timing_self_test( int verbose )
|
|||||||
if( verbose != 0 )
|
if( verbose != 0 )
|
||||||
mbedtls_printf( " TIMING test #1 (set_alarm / get_timer): " );
|
mbedtls_printf( " TIMING test #1 (set_alarm / get_timer): " );
|
||||||
|
|
||||||
for( secs = 1; secs <= 3; secs++ )
|
|
||||||
{
|
{
|
||||||
|
secs = 1;
|
||||||
|
|
||||||
(void) mbedtls_timing_get_timer( &hires, 1 );
|
(void) mbedtls_timing_get_timer( &hires, 1 );
|
||||||
|
|
||||||
mbedtls_set_alarm( (int) secs );
|
mbedtls_set_alarm( (int) secs );
|
||||||
|
Loading…
Reference in New Issue
Block a user