summaryrefslogtreecommitdiff
path: root/src/common/timer.h
diff options
context:
space:
mode:
authorGravatar Lioncash2021-01-15 01:55:30 -0500
committerGravatar Lioncash2021-01-15 01:55:33 -0500
commit91084d93961673ba7715d9b34c2c0dbee7d41cc1 (patch)
tree6eb5ad3d35c9a47d8f1e7099c8f280f5527f2465 /src/common/timer.h
parentMerge pull request #5354 from ReinUsesLisp/remove-common-color (diff)
downloadyuzu-91084d93961673ba7715d9b34c2c0dbee7d41cc1.tar.gz
yuzu-91084d93961673ba7715d9b34c2c0dbee7d41cc1.tar.xz
yuzu-91084d93961673ba7715d9b34c2c0dbee7d41cc1.zip
common/timer: Remove
This is a leftover from citra and dolphin that isn't used at all, particularly given the <chrono> header exists.
Diffstat (limited to 'src/common/timer.h')
-rw-r--r--src/common/timer.h41
1 files changed, 0 insertions, 41 deletions
diff --git a/src/common/timer.h b/src/common/timer.h
deleted file mode 100644
index 8894a143d..000000000
--- a/src/common/timer.h
+++ /dev/null
@@ -1,41 +0,0 @@
1// Copyright 2013 Dolphin Emulator Project / 2014 Citra Emulator Project
2// Licensed under GPLv2 or any later version
3// Refer to the license.txt file included.
4
5#pragma once
6
7#include <chrono>
8#include <string>
9#include "common/common_types.h"
10
11namespace Common {
12class Timer {
13public:
14 Timer();
15
16 void Start();
17 void Stop();
18 void Update();
19
20 // The time difference is always returned in milliseconds, regardless of alternative internal
21 // representation
22 [[nodiscard]] std::chrono::milliseconds GetTimeDifference();
23 void AddTimeDifference();
24
25 [[nodiscard]] static std::chrono::seconds GetTimeSinceJan1970();
26 [[nodiscard]] static std::chrono::seconds GetLocalTimeSinceJan1970();
27 [[nodiscard]] static double GetDoubleTime();
28
29 [[nodiscard]] static std::string GetTimeFormatted();
30 [[nodiscard]] std::string GetTimeElapsedFormatted() const;
31 [[nodiscard]] std::chrono::milliseconds GetTimeElapsed();
32
33 [[nodiscard]] static std::chrono::milliseconds GetTimeMs();
34
35private:
36 std::chrono::milliseconds m_LastTime;
37 std::chrono::milliseconds m_StartTime;
38 bool m_Running;
39};
40
41} // Namespace Common