diff options
| author | bunnei <bunneidev@gmail.com> | 2018-10-28 04:38:48 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-10-28 04:38:48 -0400 |
| commit | 2239d4711288ffb61c9ac25ce19e3b6b1e15107f (patch) | |
| tree | 90cd62acff8b352bfbdb796e8e947416cb8496f5 /src/core/hle/kernel/thread.h | |
| parent | b32be35173b93aafcddaa46a9a596a7223c83701 (diff) | |
| parent | 7de8e3634323bbfcd4242581b2e45493a126710a (diff) | |
Merge pull request #1593 from lioncash/svc
svc: Implement svcGetInfo command 0xF0000002
Diffstat (limited to 'src/core/hle/kernel/thread.h')
| -rw-r--r-- | src/core/hle/kernel/thread.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/hle/kernel/thread.h b/src/core/hle/kernel/thread.h index f4d7bd235..4a6e11239 100644 --- a/src/core/hle/kernel/thread.h +++ b/src/core/hle/kernel/thread.h @@ -258,6 +258,14 @@ public: return last_running_ticks; } + u64 GetTotalCPUTimeTicks() const { + return total_cpu_time_ticks; + } + + void UpdateCPUTimeTicks(u64 ticks) { + total_cpu_time_ticks += ticks; + } + s32 GetProcessorID() const { return processor_id; } @@ -378,7 +386,8 @@ private: u32 nominal_priority = 0; ///< Nominal thread priority, as set by the emulated application u32 current_priority = 0; ///< Current thread priority, can be temporarily changed - u64 last_running_ticks = 0; ///< CPU tick when thread was last running + u64 total_cpu_time_ticks = 0; ///< Total CPU running ticks. + u64 last_running_ticks = 0; ///< CPU tick when thread was last running s32 processor_id = 0; |
