diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-03 16:04:17 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2023-07-03 16:04:17 +1000 |
commit | 11e00a8dedd8f430f6528d2852169d134c17367a (patch) | |
tree | b8a8bb9fdf7e29f48777c0abebb3d7c8449d0a4c /source/core/StarTime.hpp | |
parent | 8ee9c97f54b210f9bb74b6a3c4f32f91b1620f13 (diff) |
Change debug render time logging to use microseconds
Diffstat (limited to 'source/core/StarTime.hpp')
-rw-r--r-- | source/core/StarTime.hpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/core/StarTime.hpp b/source/core/StarTime.hpp index a071df5..0905a5d 100644 --- a/source/core/StarTime.hpp +++ b/source/core/StarTime.hpp @@ -14,6 +14,7 @@ namespace Time { double monotonicTime(); int64_t monotonicMilliseconds(); + int64_t monotonicMicroseconds(); // Pretty print a duration of time (In days, hours, minutes, seconds, and milliseconds) String printDuration(double time); @@ -34,8 +35,10 @@ namespace Time { double ticksToSeconds(int64_t ticks, int64_t tickFrequency); int64_t ticksToMilliseconds(int64_t ticks, int64_t tickFrequency); + int64_t ticksToMicroseconds(int64_t ticks, int64_t tickFrequency); int64_t secondsToTicks(double seconds, int64_t tickFrequency); int64_t millisecondsToTicks(int64_t milliseconds, int64_t tickFrequency); + int64_t microsecondsToTicks(int64_t microseconds, int64_t tickFrequency); } // Keeps track of elapsed real time since a given moment. Guaranteed |