summaryrefslogtreecommitdiff
path: root/src/core/hle/shared_page.cpp
diff options
context:
space:
mode:
authorGravatar Lioncash2018-04-30 03:24:27 -0400
committerGravatar Lioncash2018-04-30 03:32:59 -0400
commit0197e28cc95e96e651eab555f512d0bb292e9215 (patch)
treeed7367dd74a937809d9501b2d848e8e981b538ba /src/core/hle/shared_page.cpp
parentMerge pull request #424 from lioncash/string (diff)
downloadyuzu-0197e28cc95e96e651eab555f512d0bb292e9215.tar.gz
yuzu-0197e28cc95e96e651eab555f512d0bb292e9215.tar.xz
yuzu-0197e28cc95e96e651eab555f512d0bb292e9215.zip
core_timing: Namespace all functions and constants in core_timing's header
All of these variables and functions are related to timings and should be within the namespace.
Diffstat (limited to 'src/core/hle/shared_page.cpp')
-rw-r--r--src/core/hle/shared_page.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/shared_page.cpp b/src/core/hle/shared_page.cpp
index bba4a0715..9ed8ab249 100644
--- a/src/core/hle/shared_page.cpp
+++ b/src/core/hle/shared_page.cpp
@@ -56,13 +56,14 @@ 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 = BASE_CLOCK_RATE; 59 date_time.tick_to_second_coefficient = CoreTiming::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;
63 63
64 // system time is updated hourly 64 // system time is updated hourly
65 CoreTiming::ScheduleEvent(msToCycles(60 * 60 * 1000) - cycles_late, update_time_event); 65 CoreTiming::ScheduleEvent(CoreTiming::msToCycles(60 * 60 * 1000) - cycles_late,
66 update_time_event);
66} 67}
67 68
68void Init() { 69void Init() {