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

Comparing BasiliskII/src/Unix/timer_unix.cpp (file contents):
Revision 1.9 by cebix, 2001-02-02T20:52:58Z vs.
Revision 1.10 by cebix, 2001-07-06T17:36:08Z

# Line 19 | Line 19
19   */
20  
21   #include "sysdeps.h"
22 + #include "macos_util.h"
23   #include "timer.h"
24  
25   #define DEBUG 0
# Line 57 | Line 58 | void Microseconds(uint32 &hi, uint32 &lo
58  
59   uint32 TimerDateTime(void)
60   {
61 <        time_t utc_now = time(NULL);
61 < #if defined(__linux__) || defined(__SVR4)
62 <        time_t local_now = utc_now - timezone;
63 < #elif defined(__FreeBSD__) || defined(__NetBSD__)
64 <        time_t local_now = utc_now + localtime(&utc_now)->tm_gmtoff;
65 < #else
66 <        time_t local_now = utc_now;
67 < #endif
68 <        return (uint32)local_now + TIME_OFFSET;
61 >        return TimeToMacTime(time(NULL));
62   }
63  
64  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines