summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2025-03-27 01:38:55 -0500
committerJordan Woyak <jordan.woyak@gmail.com>2025-03-27 01:38:55 -0500
commitebd879cb30cea945855a423d8df57895cbeaeac6 (patch)
tree42af9a51ce2e31d73b55ff48d7b6628dab473255 /Source/Core
parent1981f222284448cc8a69d970e1f8569dacec684e (diff)
Core: Name the play time tracker thread.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Core/HW/CPU.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/Core/Core/HW/CPU.cpp b/Source/Core/Core/HW/CPU.cpp
index 487a33c6ff..70f973628b 100644
--- a/Source/Core/Core/HW/CPU.cpp
+++ b/Source/Core/Core/HW/CPU.cpp
@@ -10,6 +10,7 @@
#include "AudioCommon/AudioCommon.h"
#include "Common/CommonTypes.h"
#include "Common/Event.h"
+#include "Common/Thread.h"
#include "Common/Timer.h"
#include "Core/CPUThreadConfigCallback.h"
#include "Core/Config/MainSettings.h"
@@ -69,6 +70,8 @@ void CPUManager::ExecutePendingJobs(std::unique_lock<std::mutex>& state_lock)
void CPUManager::StartTimePlayedTimer()
{
+ Common::SetCurrentThreadName("Play Time Tracker");
+
// Steady clock for greater accuracy of timing
std::chrono::steady_clock timer;
auto prev_time = timer.now();