From 98dffc070a20a3a65b7b8820d61915b3a82dca5f Mon Sep 17 00:00:00 2001 From: Takashi Kojo Date: Thu, 14 Apr 2016 18:32:33 +0900 Subject: [PATCH] current_time in test.h --- wolfssl/test.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; }