diff options
| author | 2017-11-25 14:56:57 +0100 | |
|---|---|---|
| committer | 2018-01-08 19:10:25 -0500 | |
| commit | 82151d407d8021fa8865cf8dd51c4d5cf0a4b702 (patch) | |
| tree | 739df280fddbecb50e1a2fa690abe8749486ea2d /src/core/hle/shared_page.cpp | |
| parent | IPC: Make DuplicateSession return the Domain instead of the Session if the re... (diff) | |
| download | yuzu-82151d407d8021fa8865cf8dd51c4d5cf0a4b702.tar.gz yuzu-82151d407d8021fa8865cf8dd51c4d5cf0a4b702.tar.xz yuzu-82151d407d8021fa8865cf8dd51c4d5cf0a4b702.zip | |
CoreTiming: Reworked CoreTiming (cherry-picked from Citra #3119)
* CoreTiming: New CoreTiming; Add Test for CoreTiming
Diffstat (limited to 'src/core/hle/shared_page.cpp')
| -rw-r--r-- | src/core/hle/shared_page.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/shared_page.cpp b/src/core/hle/shared_page.cpp index 833dc5ec9..9ce8af961 100644 --- a/src/core/hle/shared_page.cpp +++ b/src/core/hle/shared_page.cpp | |||
| @@ -14,7 +14,7 @@ namespace SharedPage { | |||
| 14 | 14 | ||
| 15 | SharedPageDef shared_page; | 15 | SharedPageDef shared_page; |
| 16 | 16 | ||
| 17 | static int update_time_event; | 17 | static CoreTiming::EventType* update_time_event; |
| 18 | 18 | ||
| 19 | /// Gets system time in 3DS format. The epoch is Jan 1900, and the unit is millisecond. | 19 | /// Gets system time in 3DS format. The epoch is Jan 1900, and the unit is millisecond. |
| 20 | static u64 GetSystemTime() { | 20 | static u64 GetSystemTime() { |
| @@ -56,7 +56,7 @@ static void UpdateTimeCallback(u64 userdata, int cycles_late) { | |||
| 56 | 56 | ||
| 57 | date_time.date_time = GetSystemTime(); | 57 | date_time.date_time = GetSystemTime(); |
| 58 | date_time.update_tick = CoreTiming::GetTicks(); | 58 | date_time.update_tick = CoreTiming::GetTicks(); |
| 59 | date_time.tick_to_second_coefficient = g_clock_rate_arm11; | 59 | date_time.tick_to_second_coefficient = BASE_CLOCK_RATE; |
| 60 | date_time.tick_offset = 0; | 60 | date_time.tick_offset = 0; |
| 61 | 61 | ||
| 62 | ++shared_page.date_time_counter; | 62 | ++shared_page.date_time_counter; |