diff options
author | Lioncash <mathew1800@gmail.com> | 2018-10-26 00:42:50 +0200 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2018-10-26 18:49:11 +0200 |
commit | 6594853eb112f265fe2354723160c0d4e1cb761a (patch) | |
tree | 60e67d4d7f38d8f1fe5bebe01f3ef0d87881c570 /src/core/hle/kernel/process.h | |
parent | Merge pull request #1533 from FernandoS27/lmem (diff) | |
download | yuzu-6594853eb112f265fe2354723160c0d4e1cb761a.tar yuzu-6594853eb112f265fe2354723160c0d4e1cb761a.tar.gz yuzu-6594853eb112f265fe2354723160c0d4e1cb761a.tar.bz2 yuzu-6594853eb112f265fe2354723160c0d4e1cb761a.tar.lz yuzu-6594853eb112f265fe2354723160c0d4e1cb761a.tar.xz yuzu-6594853eb112f265fe2354723160c0d4e1cb761a.tar.zst yuzu-6594853eb112f265fe2354723160c0d4e1cb761a.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/kernel/process.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/hle/kernel/process.h b/src/core/hle/kernel/process.h index 148478488..8d2616c79 100644 --- a/src/core/hle/kernel/process.h +++ b/src/core/hle/kernel/process.h @@ -202,6 +202,16 @@ public: return is_64bit_process; } + /// Gets the total running time of the process instance in ticks. + u64 GetCPUTimeTicks() const { + return total_process_running_time_ticks; + } + + /// Updates the total running time, adding the given ticks to it. + void UpdateCPUTimeTicks(u64 ticks) { + total_process_running_time_ticks += ticks; + } + /** * Loads process-specifics configuration info with metadata provided * by an executable. @@ -305,6 +315,9 @@ private: /// specified by metadata provided to the process during loading. bool is_64bit_process = true; + /// Total running time for the process in ticks. + u64 total_process_running_time_ticks = 0; + /// Per-process handle table for storing created object handles in. HandleTable handle_table; |