Changeset 380
- Timestamp:
- Jul 4, 2009, 5:52:36 AM (15 years ago)
- Location:
- Daodan
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/Daodan_Utility.c
r297 r380 7 7 #include "Daodan_Utility.h" 8 8 #include "BFW_Utility.h" 9 10 const double fps = 60.0; 9 11 10 12 void __cdecl DDrStartupMessage(const char* fmt, ...) … … 28 30 } 29 31 32 /* 30 33 int64_t ONICALL DDrMachineTime_Sixtieths() 31 34 { … … 44 47 45 48 return (Time * 3) / 50; 49 } 50 */ 51 52 int64_t ONICALL DDrMachineTime_Sixtieths() 53 { 54 static uint32_t startticks = 0; 55 double ticks = 0; 56 57 if (startticks) 58 ticks = GetTickCount() - startticks; 59 else 60 startticks = GetTickCount(); 61 62 return (int64_t)(ticks / 1000.0 * fps); 46 63 } 47 64
Note:
See TracChangeset
for help on using the changeset viewer.