mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -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);
|
||||
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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user