ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Windows/timer_windows.cpp
(Generate patch)

Comparing BasiliskII/src/Windows/timer_windows.cpp (file contents):
Revision 1.1 by gbeauche, 2004-11-28T17:54:05Z vs.
Revision 1.3 by gbeauche, 2004-12-03T22:05:36Z

# Line 34 | Line 34
34   // Helper time functions
35   #define MSECS2TICKS(MSECS) (((uint64)(MSECS) * frequency) / 1000)
36   #define USECS2TICKS(USECS) (((uint64)(USECS) * frequency) / 1000000)
37 #define TICKS2MSECS(TICKS) (((uint64)(TICKS) * 1000) / frequency)
37   #define TICKS2USECS(TICKS) (((uint64)(TICKS) * 1000000) / frequency)
38  
39   // Global variables
# Line 48 | Line 47 | static tm_time_t mac_now_diff;
47   *  Initialize native Windows timers
48   */
49  
50 < void SysTimerInit(void)
50 > void timer_init(void)
51   {
52          D(bug("SysTimerInit\n"));
53  
# Line 165 | Line 164 | int32 timer_host2mac_time(tm_time_t host
164          if (hosttime < 0)
165                  return 0;
166          else {
167 <                uint64 t = TICKS2MSECS(hosttime);
167 >                uint64 t = TICKS2USECS(hosttime);
168                  if (t > 0x7fffffff)
169                          return t / 1000;        // Time in milliseconds
170                  else

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines