mirror of
https://github.com/yuzu-emu/yuzu-android
synced 2024-12-26 08:41:22 -08:00
Merge pull request #3713 from lioncash/time
service/time: Minor changes
This commit is contained in:
commit
907ba8794e
@ -23,7 +23,7 @@ public:
|
|||||||
standard_network_clock_sufficient_accuracy = value;
|
standard_network_clock_sufficient_accuracy = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool IsStandardNetworkSystemClockAccuracySufficient(Core::System& system) {
|
bool IsStandardNetworkSystemClockAccuracySufficient(Core::System& system) const {
|
||||||
SystemClockContext context{};
|
SystemClockContext context{};
|
||||||
if (GetClockContext(system, context) != RESULT_SUCCESS) {
|
if (GetClockContext(system, context) != RESULT_SUCCESS) {
|
||||||
return {};
|
return {};
|
||||||
|
@ -16,6 +16,7 @@ namespace Service::Time::Clock {
|
|||||||
class SteadyClockCore {
|
class SteadyClockCore {
|
||||||
public:
|
public:
|
||||||
SteadyClockCore() = default;
|
SteadyClockCore() = default;
|
||||||
|
virtual ~SteadyClockCore() = default;
|
||||||
|
|
||||||
const Common::UUID& GetClockSourceId() const {
|
const Common::UUID& GetClockSourceId() const {
|
||||||
return clock_source_id;
|
return clock_source_id;
|
||||||
|
@ -20,7 +20,7 @@ namespace Service::Time::Clock {
|
|||||||
class SystemClockContextUpdateCallback {
|
class SystemClockContextUpdateCallback {
|
||||||
public:
|
public:
|
||||||
SystemClockContextUpdateCallback();
|
SystemClockContextUpdateCallback();
|
||||||
~SystemClockContextUpdateCallback();
|
virtual ~SystemClockContextUpdateCallback();
|
||||||
|
|
||||||
bool NeedUpdate(const SystemClockContext& value) const;
|
bool NeedUpdate(const SystemClockContext& value) const;
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
namespace Service::Time::Clock {
|
namespace Service::Time::Clock {
|
||||||
|
|
||||||
SystemClockCore::SystemClockCore(SteadyClockCore& steady_clock_core)
|
SystemClockCore::SystemClockCore(SteadyClockCore& steady_clock_core)
|
||||||
: steady_clock_core{steady_clock_core}, is_initialized{} {
|
: steady_clock_core{steady_clock_core} {
|
||||||
context.steady_time_point.clock_source_id = steady_clock_core.GetClockSourceId();
|
context.steady_time_point.clock_source_id = steady_clock_core.GetClockSourceId();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ class SystemClockContextUpdateCallback;
|
|||||||
class SystemClockCore {
|
class SystemClockCore {
|
||||||
public:
|
public:
|
||||||
explicit SystemClockCore(SteadyClockCore& steady_clock_core);
|
explicit SystemClockCore(SteadyClockCore& steady_clock_core);
|
||||||
~SystemClockCore();
|
virtual ~SystemClockCore();
|
||||||
|
|
||||||
SteadyClockCore& GetSteadyClockCore() const {
|
SteadyClockCore& GetSteadyClockCore() const {
|
||||||
return steady_clock_core;
|
return steady_clock_core;
|
||||||
|
Loading…
Reference in New Issue
Block a user