diff --git a/core/src/main/resources/org/teavm/backend/c/runtime.c b/core/src/main/resources/org/teavm/backend/c/runtime.c index 1e60cb3ca..8a3fb4dcd 100644 --- a/core/src/main/resources/org/teavm/backend/c/runtime.c +++ b/core/src/main/resources/org/teavm/backend/c/runtime.c @@ -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