mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 16:14:10 -08:00
Fixed teavm_currentTimeNano() for MSVC
This commit is contained in:
parent
90a5ad72d5
commit
5593a2c557
|
@ -201,7 +201,7 @@ int64_t teavm_currentTimeNano() {
|
||||||
GetSystemTime(&time);
|
GetSystemTime(&time);
|
||||||
SystemTimeToFileTime(&time, &fileTime);
|
SystemTimeToFileTime(&time, &fileTime);
|
||||||
uint64_t current = fileTime.dwLowDateTime | ((uint64_t) fileTime.dwHighDateTime << 32);
|
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
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user