mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 18:04:18 +00:00
Fixed typo in my System::currentTimeMillis which was resulting in very slow or no passed time on world ticks.
This commit is contained in:
parent
e21112a146
commit
7de4c8a408
|
|
@ -103,7 +103,7 @@ __int64 System::currentTimeMillis()
|
|||
gettimeofday(&tv, NULL);
|
||||
// Convert to milliseconds since unix epoch instead of windows file time
|
||||
// time is expecting calculation to be between 10-30 ms.
|
||||
return (int64_t)tv.tv_sec * 1000LL + tv.tv_sec / 1000;
|
||||
return (int64_t)tv.tv_sec * 1000LL + tv.tv_usec / 1000;
|
||||
#else
|
||||
|
||||
SYSTEMTIME UTCSysTime;
|
||||
|
|
|
|||
Loading…
Reference in a new issue