[util] Rename getFrequency, getCounter -> get_frequency, get_counter

To be consistent with STL naming conventions
This commit is contained in:
Joshua Ashton 2022-08-21 20:15:07 +00:00 committed by Philip Rebohle
parent 1c1dba4624
commit 8921f62539
1 changed files with 4 additions and 4 deletions

View File

@ -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);