feat(console): add more work to understand ConsoleDeviceInitialize

This commit is contained in:
phaneron 2025-04-03 02:21:40 -04:00
parent 9df5775a17
commit 6cda64dfc4
16 changed files with 224 additions and 28 deletions

View file

@ -0,0 +1,26 @@
#ifndef OS_TIME_MANAGER_H
#define OS_TIME_MANAGER_H
#include "storm/thread.h"
DECLARE_ENUM(TimingMethod);
DECLARE_STRUCT(OsTimeManager);
enum TimingMethod {
BestAvailable = 0,
// GetTickCount (Windows), mach_absolute_time (MacOS)
SystemMethod1 = 1,
// QueryPerformanceCounter (Windows), Carbon Microseconds (MacOS)
SystemMethod2 = 2,
NotSet = 0xFFFFFFFF,
};
struct OsTimeManager {
double scaleToMs;
TimingMethod timingMethod;
uint32_t timingTestError;
int64_t performanceFrequency;
double timeBegin;
};
#endif