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 275 by rossy, Wed Mar 18 07:14:58 2009 UTC vs.
Revision 276 by rossy, Wed Mar 18 07:48:30 2009 UTC

# Line 27 | Line 27 | void __cdecl DDrStartupMessage(const cha
27          return;
28   }
29  
30 + int64_t DDrMachineTime_Sixtieths()
31 + {
32 +        static int64_t LastTime, Time;
33 +        int64_t Current;
34 +
35 +        Current = LastTime + GetTickCount();
36 +
37 +        if (Current > Time)
38 +        {
39 +                LastTime += 1;
40 +                Current += 1;
41 +        }
42 +
43 +        Time = Current;
44 +
45 +        return (Time * 3) / 50;
46 + }
47 +
48   int64_t DDrMachineTime_High()
49   {
50   //      LARGE_INTEGER PerfCount;

Diff Legend

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