From 8921f625396389b164d1169bbbb19a64c56c8e6b Mon Sep 17 00:00:00 2001 From: Joshua Ashton Date: Sun, 21 Aug 2022 20:15:07 +0000 Subject: [PATCH] [util] Rename getFrequency, getCounter -> get_frequency, get_counter To be consistent with STL naming conventions --- src/util/util_time.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/util/util_time.h b/src/util/util_time.h index cbadfa5d0..ee9b7d6fc 100644 --- a/src/util/util_time.h +++ b/src/util/util_time.h @@ -20,8 +20,8 @@ namespace dxvk { static inline time_point now() noexcept { // Keep the frequency static, this doesn't change at all. - static const int64_t freq = getFrequency(); - const int64_t counter = getCounter(); + static const int64_t freq = get_frequency(); + const int64_t counter = get_counter(); const int64_t whole = (counter / freq) * period::den; const int64_t part = (counter % freq) * period::den / freq; @@ -29,14 +29,14 @@ namespace dxvk { return time_point(duration(whole + part)); } - static inline int64_t getFrequency() { + static inline int64_t get_frequency() { LARGE_INTEGER freq; QueryPerformanceFrequency(&freq); return freq.QuadPart; } - static inline int64_t getCounter() { + static inline int64_t get_counter() { LARGE_INTEGER count; QueryPerformanceCounter(&count);