VUI/Source/Platform/Windows/Time.cppm
2025-05-29 13:21:19 +02:00

19 lines
No EOL
421 B
C++

module;
#include <cstdint>
#include "Windows.h"
export module VUI:TimeInternal;
namespace VUI {
export uint64_t GetTimerValue() {
uint64_t value{0};
QueryPerformanceCounter(reinterpret_cast<LARGE_INTEGER *>(&value));
return value;
}
export uint64_t GetTimerFrequency() {
uint64_t frequency{0};
QueryPerformanceFrequency(reinterpret_cast<LARGE_INTEGER *>(&frequency));
return frequency;
}
} // namespace VUI