change windows low res timer return

This commit is contained in:
toddouska 2013-04-22 10:52:38 -07:00
parent b5ac92bcd1
commit 11d81b86de
2 changed files with 2 additions and 11 deletions

View File

@ -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);

View File

@ -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"