Fixed teavm_currentTimeNano() for MSVC

This commit is contained in:
Andrey Mikhalev 2019-06-28 12:12:21 +03:00 committed by Alexey Andreev
parent 90a5ad72d5
commit 5593a2c557

View File

@ -201,7 +201,7 @@ int64_t teavm_currentTimeNano() {
GetSystemTime(&time);
SystemTimeToFileTime(&time, &fileTime);
uint64_t current = fileTime.dwLowDateTime | ((uint64_t) fileTime.dwHighDateTime << 32);
return (int64_t) ((current - teavm_unixTimeOffset) / 10);
return (int64_t) ((current - teavm_unixTimeOffset) * 100);
}
#endif