move MDK5 current_time to test.h

This commit is contained in:
Takashi Kojo
2016-04-14 18:47:16 +09:00
parent 98dffc070a
commit cab1ebf2d6
3 changed files with 2 additions and 5 deletions

View File

@ -150,8 +150,6 @@ static void ShowVersions(void)
printf("3\n"); printf("3\n");
} }
extern double current_time(int);
int ClientBenchmarkConnections(WOLFSSL_CTX* ctx, char* host, word16 port, int ClientBenchmarkConnections(WOLFSSL_CTX* ctx, char* host, word16 port,
int doDTLS, int benchmark, int resumeSession) int doDTLS, int benchmark, int resumeSession)
{ {

View File

@ -125,8 +125,6 @@ static int NonBlockingSSL_Accept(SSL* ssl)
return ret; return ret;
} }
extern double current_time(int);
/* Echo number of bytes specified by -e arg */ /* Echo number of bytes specified by -e arg */
int ServerEchoData(SSL* ssl, int clientfd, int echoData, int throughput) int ServerEchoData(SSL* ssl, int clientfd, int echoData, int throughput)
{ {

View File

@ -1005,7 +1005,8 @@ static INLINE unsigned int my_psk_server_cb(WOLFSSL* ssl, const char* identity,
return (double)tv.tv_sec + (double)tv.tv_usec / 1000000; return (double)tv.tv_sec + (double)tv.tv_usec / 1000000;
} }
#else
extern double current_time(int reset);
#endif #endif
#endif /* USE_WINDOWS_API */ #endif /* USE_WINDOWS_API */