diff options
| author | 2024-01-25 14:19:01 -0500 | |
|---|---|---|
| committer | 2024-01-25 14:19:01 -0500 | |
| commit | d45561ace069024f47ed710d1165b607644d1ec3 (patch) | |
| tree | a316f59c5a722dc15fe5c49b3641d9801c264970 /src/common/wall_clock.h | |
| parent | Merge pull request #12781 from goldenx86/dozen (diff) | |
| parent | Rework time service to fix time passing offline. (diff) | |
| download | yuzu-d45561ace069024f47ed710d1165b607644d1ec3.tar.gz yuzu-d45561ace069024f47ed710d1165b607644d1ec3.tar.xz yuzu-d45561ace069024f47ed710d1165b607644d1ec3.zip | |
Merge pull request #12499 from Kelebek1/time
Rework time services
Diffstat (limited to 'src/common/wall_clock.h')
| -rw-r--r-- | src/common/wall_clock.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/common/wall_clock.h b/src/common/wall_clock.h index f45d3d8c5..3a0c43909 100644 --- a/src/common/wall_clock.h +++ b/src/common/wall_clock.h | |||
| @@ -29,16 +29,13 @@ public: | |||
| 29 | virtual std::chrono::milliseconds GetTimeMS() const = 0; | 29 | virtual std::chrono::milliseconds GetTimeMS() const = 0; |
| 30 | 30 | ||
| 31 | /// @returns The guest CNTPCT ticks since the construction of this clock. | 31 | /// @returns The guest CNTPCT ticks since the construction of this clock. |
| 32 | virtual u64 GetCNTPCT() const = 0; | 32 | virtual s64 GetCNTPCT() const = 0; |
| 33 | 33 | ||
| 34 | /// @returns The guest GPU ticks since the construction of this clock. | 34 | /// @returns The guest GPU ticks since the construction of this clock. |
| 35 | virtual u64 GetGPUTick() const = 0; | 35 | virtual s64 GetGPUTick() const = 0; |
| 36 | 36 | ||
| 37 | /// @returns The raw host timer ticks since an indeterminate epoch. | 37 | /// @returns The raw host timer ticks since an indeterminate epoch. |
| 38 | virtual u64 GetHostTicksNow() const = 0; | 38 | virtual s64 GetUptime() const = 0; |
| 39 | |||
| 40 | /// @returns The raw host timer ticks since the construction of this clock. | ||
| 41 | virtual u64 GetHostTicksElapsed() const = 0; | ||
| 42 | 39 | ||
| 43 | /// @returns Whether the clock directly uses the host's hardware clock. | 40 | /// @returns Whether the clock directly uses the host's hardware clock. |
| 44 | virtual bool IsNative() const = 0; | 41 | virtual bool IsNative() const = 0; |