ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/Daodan/src/Daodan_Utility.c
(Generate patch)

Comparing Daodan/src/Daodan_Utility.c (file contents):
Revision 691 by alloc, Sun Mar 3 04:39:05 2013 UTC vs.
Revision 692 by alloc, Thu Mar 7 17:26:13 2013 UTC

# Line 1 | Line 1
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;
# Line 33 | Line 30 | void __cdecl DDrStartupMessage(const cha
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;

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)