mirror of
https://github.com/thunderbrewhq/binana.git
synced 2025-12-12 17:52:29 +00:00
feat(console): add more work to understand ConsoleDeviceInitialize
This commit is contained in:
parent
9df5775a17
commit
6cda64dfc4
16 changed files with 224 additions and 28 deletions
26
profile/3.3.5a-windows-386/include/os/timemanager.h
Normal file
26
profile/3.3.5a-windows-386/include/os/timemanager.h
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue