diff options
| author | 2021-01-15 09:42:33 -0800 | |
|---|---|---|
| committer | 2021-01-15 09:42:33 -0800 | |
| commit | f728a504aa3aaea48ca86860ad04a975a355a4f5 (patch) | |
| tree | 041d45be7f094d0f28119570507316ea54611f29 /src/common/timer.h | |
| parent | Merge pull request #5357 from ReinUsesLisp/alignment-log2 (diff) | |
| parent | common/timer: Remove (diff) | |
| download | yuzu-f728a504aa3aaea48ca86860ad04a975a355a4f5.tar.gz yuzu-f728a504aa3aaea48ca86860ad04a975a355a4f5.tar.xz yuzu-f728a504aa3aaea48ca86860ad04a975a355a4f5.zip | |
Merge pull request #5355 from lioncash/timer
common/timer: Remove
Diffstat (limited to 'src/common/timer.h')
| -rw-r--r-- | src/common/timer.h | 41 |
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 | |||
| 11 | namespace Common { | ||
| 12 | class Timer { | ||
| 13 | public: | ||
| 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 | |||
| 35 | private: | ||
| 36 | std::chrono::milliseconds m_LastTime; | ||
| 37 | std::chrono::milliseconds m_StartTime; | ||
| 38 | bool m_Running; | ||
| 39 | }; | ||
| 40 | |||
| 41 | } // Namespace Common | ||