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