mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Merge pull request #9716 from LunaMoo/TimeStuff
Init rtcBaseTime.tv_usec to 0 to return matching time in some syscalls
This commit is contained in:
commit
1bf3885048
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ void __RtcInit()
|
|||
timeval tv;
|
||||
gettimeofday(&tv, NULL);
|
||||
rtcBaseTime.tv_sec = tv.tv_sec;
|
||||
rtcBaseTime.tv_usec = tv.tv_usec;
|
||||
rtcBaseTime.tv_usec = 0;
|
||||
// Precalculate the current time in microseconds (rtcMagicOffset is offset to 1970.)
|
||||
rtcBaseTicks = 1000000ULL * rtcBaseTime.tv_sec + rtcBaseTime.tv_usec + rtcMagicOffset;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue