summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/time/clock_types.h
diff options
context:
space:
mode:
authorFernando S <fsahmkow27@gmail.com>2023-05-13 03:51:05 +0200
committerGitHub <noreply@github.com>2023-05-13 03:51:05 +0200
commit9c739f1506dd549df314ccef386218cdf2e5f3a8 (patch)
treec0149b204b55e2fc513462201d1911eb00ccccba /src/core/hle/service/time/clock_types.h
parentMerge pull request #10243 from Kelebek1/red_dot (diff)
parenttime: implement ContinuousAdjustmentTimePoint (diff)
downloadyuzu-9c739f1506dd549df314ccef386218cdf2e5f3a8.tar
yuzu-9c739f1506dd549df314ccef386218cdf2e5f3a8.tar.gz
yuzu-9c739f1506dd549df314ccef386218cdf2e5f3a8.tar.bz2
yuzu-9c739f1506dd549df314ccef386218cdf2e5f3a8.tar.lz
yuzu-9c739f1506dd549df314ccef386218cdf2e5f3a8.tar.xz
yuzu-9c739f1506dd549df314ccef386218cdf2e5f3a8.tar.zst
yuzu-9c739f1506dd549df314ccef386218cdf2e5f3a8.zip
Diffstat (limited to 'src/core/hle/service/time/clock_types.h')
-rw-r--r--src/core/hle/service/time/clock_types.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/core/hle/service/time/clock_types.h b/src/core/hle/service/time/clock_types.h
index ed1eb5b2d..e6293ffb9 100644
--- a/src/core/hle/service/time/clock_types.h
+++ b/src/core/hle/service/time/clock_types.h
@@ -59,6 +59,18 @@ static_assert(sizeof(SystemClockContext) == 0x20, "SystemClockContext is incorre
static_assert(std::is_trivially_copyable_v<SystemClockContext>,
"SystemClockContext must be trivially copyable");
+struct ContinuousAdjustmentTimePoint {
+ s64 measurement_offset;
+ s64 diff_scale;
+ u32 shift_amount;
+ s64 lower;
+ s64 upper;
+ Common::UUID clock_source_id;
+};
+static_assert(sizeof(ContinuousAdjustmentTimePoint) == 0x38);
+static_assert(std::is_trivially_copyable_v<ContinuousAdjustmentTimePoint>,
+ "ContinuousAdjustmentTimePoint must be trivially copyable");
+
/// https://switchbrew.org/wiki/Glue_services#TimeSpanType
struct TimeSpanType {
s64 nanoseconds{};