Ignore:
Timestamp:
Mar 18, 2009, 8:48:30 AM (16 years ago)
Author:
rossy
Message:

DDrMachineTime_Sixtieths

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/Daodan_Utility.c

    r275 r276  
    2828}
    2929
     30int64_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
    3048int64_t DDrMachineTime_High()
    3149{
Note: See TracChangeset for help on using the changeset viewer.