current_time in test.h

This commit is contained in:
Takashi Kojo 2016-04-14 18:32:33 +09:00
parent 35c5353698
commit 98dffc070a

View File

@ -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 <sys/time.h>
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;
}