fix win32 ms time fail
`GetSystemTimeAsFileTime` returns 100 nano seconds elapsed time, not 100 micro seconds. Signed-off-by: Jerry Yu <jerry.h.yu@arm.com>
This commit is contained in:
parent
02d684061b
commit
f52078f5a1
1 changed files with 1 additions and 1 deletions
|
@ -200,7 +200,7 @@ mbedtls_ms_time_t mbedtls_ms_time(void)
|
|||
|
||||
GetSystemTimeAsFileTime(&ct);
|
||||
current_ms = ((mbedtls_ms_time_t) ct.dwLowDateTime +
|
||||
((mbedtls_ms_time_t) (ct.dwHighDateTime) << 32LL))/10;
|
||||
((mbedtls_ms_time_t) (ct.dwHighDateTime) << 32LL))/10000;
|
||||
return current_ms;
|
||||
}
|
||||
#else
|
||||
|
|
Loading…
Reference in a new issue