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

Comparing BasiliskII/src/BeOS/timer_beos.cpp (file contents):
Revision 1.6 by cebix, 2001-02-02T20:52:57Z vs.
Revision 1.7 by cebix, 2001-07-06T17:36:07Z

# Line 21 | Line 21
21   #include <KernelKit.h>
22  
23   #include "sysdeps.h"
24 + #include "macos_util.h"
25   #include "timer.h"
26  
27   #define DEBUG 0
# Line 46 | Line 47 | void Microseconds(uint32 &hi, uint32 &lo
47  
48   uint32 TimerDateTime(void)
49   {
50 <        time_t utc_now = time(NULL);
50 <        long tz = timezone;
51 <        time_t local_now = utc_now - tz;
52 <        if (daylight)
53 <                local_now += 3600;
54 <        return (uint32)local_now + TIME_OFFSET;
50 >        return TimeToMacTime(time(NULL));
51   }
52  
53  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines