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 272 by rossy, Tue Mar 17 09:06:00 2009 UTC vs.
Revision 275 by rossy, Wed Mar 18 07:14:58 2009 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"
6  
7   #include "Daodan_Utility.h"
# Line 24 | Line 26 | void __cdecl DDrStartupMessage(const cha
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 + }

Diff Legend

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