mirror of
https://github.com/kanjitalk755/macemu.git
synced 2024-11-18 18:05:21 +00:00
fix win32 timer_host2mac_time()
This commit is contained in:
parent
08a3e449d3
commit
5b58485720
@ -34,7 +34,6 @@
|
||||
// Helper time functions
|
||||
#define MSECS2TICKS(MSECS) (((uint64)(MSECS) * frequency) / 1000)
|
||||
#define USECS2TICKS(USECS) (((uint64)(USECS) * frequency) / 1000000)
|
||||
#define TICKS2MSECS(TICKS) (((uint64)(TICKS) * 1000) / frequency)
|
||||
#define TICKS2USECS(TICKS) (((uint64)(TICKS) * 1000000) / frequency)
|
||||
|
||||
// Global variables
|
||||
@ -165,7 +164,7 @@ int32 timer_host2mac_time(tm_time_t hosttime)
|
||||
if (hosttime < 0)
|
||||
return 0;
|
||||
else {
|
||||
uint64 t = TICKS2MSECS(hosttime);
|
||||
uint64 t = TICKS2USECS(hosttime);
|
||||
if (t > 0x7fffffff)
|
||||
return t / 1000; // Time in milliseconds
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user