diff --git a/wolfssl/test.h b/wolfssl/test.h index 293ef0309..4bde12c99 100644 --- a/wolfssl/test.h +++ b/wolfssl/test.h @@ -997,11 +997,12 @@ static INLINE unsigned int my_psk_server_cb(WOLFSSL* ssl, const char* identity, #if !defined(WOLFSSL_MDK_ARM) && !defined(WOLFSSL_KEIL_TCP_NET) #include - static INLINE double current_time(void) + static INLINE double current_time(int reset) { struct timeval tv; gettimeofday(&tv, 0); - + (void)reset; + return (double)tv.tv_sec + (double)tv.tv_usec / 1000000; }