🎉 begin project
This commit is contained in:
commit
8da6ddc689
29 changed files with 1261 additions and 0 deletions
19
Source/Platform/Windows/Time.cppm
Normal file
19
Source/Platform/Windows/Time.cppm
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
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
|
||||
Loading…
Add table
Add a link
Reference in a new issue