mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #2522 from dycoon/debug_timer
timer on windows bug fixed.
This commit is contained in:
@@ -80,7 +80,7 @@ gettimeofday(struct timeval *tv, void *tz)
|
||||
t.u64 -= UI64(116444736000000000); /* Unix epoch bias */
|
||||
t.u64 /= 10; /* to microseconds */
|
||||
tv->tv_sec = (time_t)(t.u64 / (1000 * 1000));
|
||||
tv->tv_usec = t.u64 % 1000 * 1000;
|
||||
tv->tv_usec = t.u64 % (1000 * 1000);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user