summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/process.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-28 09:38:48 +0100
committerGitHub <noreply@github.com>2018-10-28 09:38:48 +0100
commit2239d4711288ffb61c9ac25ce19e3b6b1e15107f (patch)
tree90cd62acff8b352bfbdb796e8e947416cb8496f5 /src/core/hle/kernel/process.h
parentMerge pull request #1581 from FreddyFunk/macosx-target-version (diff)
parentsvc: Localize the GetInfo enum class to the function itself (diff)
downloadyuzu-2239d4711288ffb61c9ac25ce19e3b6b1e15107f.tar
yuzu-2239d4711288ffb61c9ac25ce19e3b6b1e15107f.tar.gz
yuzu-2239d4711288ffb61c9ac25ce19e3b6b1e15107f.tar.bz2
yuzu-2239d4711288ffb61c9ac25ce19e3b6b1e15107f.tar.lz
yuzu-2239d4711288ffb61c9ac25ce19e3b6b1e15107f.tar.xz
yuzu-2239d4711288ffb61c9ac25ce19e3b6b1e15107f.tar.zst
yuzu-2239d4711288ffb61c9ac25ce19e3b6b1e15107f.zip
Diffstat (limited to 'src/core/hle/kernel/process.h')
-rw-r--r--src/core/hle/kernel/process.h13
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;