1 |
|
#include <windows.h> |
2 |
|
#include <stdlib.h> |
3 |
|
#include <stdarg.h> |
4 |
– |
//#include <stdint.h> |
5 |
– |
#include "oni_stdio.h" |
4 |
|
|
5 |
|
#include "Daodan_Utility.h" |
8 |
– |
#include "BFW_Utility.h" |
6 |
|
#include "Oni.h" |
7 |
|
|
8 |
|
const double fps = 60.0; |
30 |
|
return; |
31 |
|
} |
32 |
|
|
36 |
– |
/* |
37 |
– |
int64_t ONICALL DDrMachineTime_Sixtieths() |
38 |
– |
{ |
39 |
– |
static int64_t LastTime, Time; |
40 |
– |
int64_t Current; |
41 |
– |
|
42 |
– |
Current = LastTime + GetTickCount(); |
43 |
– |
|
44 |
– |
if (Current > Time) |
45 |
– |
{ |
46 |
– |
LastTime += 1; |
47 |
– |
Current += 1; |
48 |
– |
} |
49 |
– |
|
50 |
– |
Time = Current; |
51 |
– |
|
52 |
– |
return (Time * 3) / 50; |
53 |
– |
} |
54 |
– |
*/ |
55 |
– |
|
33 |
|
int64_t ONICALL DDrMachineTime_Sixtieths() |
34 |
|
{ |
35 |
|
static uint32_t startticks = 0; |