summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/psc/time/clocks/standard_local_system_clock_core.h
blob: 176ba3e944fa592c657a71bfe3f0c15052d317e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// SPDX-FileCopyrightText: Copyright 2023 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "core/hle/result.h"
#include "core/hle/service/psc/time/clocks/context_writers.h"
#include "core/hle/service/psc/time/clocks/steady_clock_core.h"
#include "core/hle/service/psc/time/clocks/system_clock_core.h"
#include "core/hle/service/psc/time/common.h"

namespace Service::PSC::Time {

class StandardLocalSystemClockCore : public SystemClockCore {
public:
    explicit StandardLocalSystemClockCore(SteadyClockCore& steady_clock)
        : SystemClockCore{steady_clock} {}
    ~StandardLocalSystemClockCore() override = default;

    void Initialize(SystemClockContext& context, s64 time);
};

} // namespace Service::PSC::Time