From 11e00a8dedd8f430f6528d2852169d134c17367a Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Mon, 3 Jul 2023 16:04:17 +1000 Subject: Change debug render time logging to use microseconds --- source/core/StarTime.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'source/core/StarTime.hpp') 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 -- cgit v1.2.3