1 |
+ |
#include <windows.h> |
2 |
|
#include <stdlib.h> |
3 |
|
#include <stdarg.h> |
4 |
+ |
#include <stdint.h> |
5 |
|
#include "oni_stdio.h" |
6 |
|
|
7 |
|
#include "Daodan_Utility.h" |
26 |
|
oni_fflush(ONgFileStartup); |
27 |
|
return; |
28 |
|
} |
29 |
+ |
|
30 |
+ |
int64_t DDrMachineTime_High() |
31 |
+ |
{ |
32 |
+ |
// LARGE_INTEGER PerfCount; |
33 |
+ |
// |
34 |
+ |
// if (!QueryPerformanceCounter(&PerfCount)) |
35 |
+ |
// PerfCount.QuadPart = GetTickCount(); |
36 |
+ |
// |
37 |
+ |
// return PerfCount.QuadPart; |
38 |
+ |
return GetTickCount(); |
39 |
+ |
} |
40 |
+ |
|
41 |
+ |
double DDrMachineTime_High_Frequency() |
42 |
+ |
{ |
43 |
+ |
// LARGE_INTEGER Frequency; |
44 |
+ |
// |
45 |
+ |
// if (!QueryPerformanceFrequency(&Frequency)) |
46 |
+ |
return 1000.0; |
47 |
+ |
|
48 |
+ |
// return Frequency.QuadPart; |
49 |
+ |
} |