forked from wolfSSL/wolfssl
change windows low res timer return
This commit is contained in:
@ -1882,9 +1882,7 @@ CYASSL_LOCAL int GrowInputBuffer(CYASSL* ssl, int size, int usedLength);
|
|||||||
|
|
||||||
#endif /* NO_TLS */
|
#endif /* NO_TLS */
|
||||||
|
|
||||||
typedef double timer_d;
|
|
||||||
|
|
||||||
CYASSL_LOCAL timer_d Timer(void);
|
|
||||||
CYASSL_LOCAL word32 LowResTimer(void);
|
CYASSL_LOCAL word32 LowResTimer(void);
|
||||||
|
|
||||||
|
|
||||||
|
@ -2023,7 +2023,7 @@ ProtocolVersion MakeDTLSv1_2(void)
|
|||||||
|
|
||||||
#ifdef USE_WINDOWS_API
|
#ifdef USE_WINDOWS_API
|
||||||
|
|
||||||
timer_d Timer(void)
|
word32 LowResTimer(void)
|
||||||
{
|
{
|
||||||
static int init = 0;
|
static int init = 0;
|
||||||
static LARGE_INTEGER freq;
|
static LARGE_INTEGER freq;
|
||||||
@ -2036,16 +2036,9 @@ ProtocolVersion MakeDTLSv1_2(void)
|
|||||||
|
|
||||||
QueryPerformanceCounter(&count);
|
QueryPerformanceCounter(&count);
|
||||||
|
|
||||||
return (double)count.QuadPart / freq.QuadPart;
|
return (word32)(count.QuadPart / freq.QuadPart);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
word32 LowResTimer(void)
|
|
||||||
{
|
|
||||||
return (word32)Timer();
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#elif defined(THREADX)
|
#elif defined(THREADX)
|
||||||
|
|
||||||
#include "rtptime.h"
|
#include "rtptime.h"
|
||||||
|
Reference in New Issue
Block a user