move from use of boot_time to use of system_time_offset
remove _get_tzfilename git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10194 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -16,11 +16,7 @@
|
||||
|
||||
static struct real_time_data sRealTimeDefaults = {
|
||||
0,
|
||||
100000,
|
||||
0,
|
||||
false,
|
||||
"",
|
||||
true
|
||||
100000
|
||||
};
|
||||
static struct real_time_data *sRealTimeData;
|
||||
|
||||
@@ -45,16 +41,14 @@ __init_time(void)
|
||||
uint32
|
||||
real_time_clock(void)
|
||||
{
|
||||
return (sRealTimeData->boot_time + system_time()
|
||||
- (sRealTimeData->isGMT ? 0 : sRealTimeData->timezone_offset)) / 1000000;
|
||||
return (sRealTimeData->system_time_offset + system_time()) / 1000000;
|
||||
}
|
||||
|
||||
|
||||
bigtime_t
|
||||
real_time_clock_usecs(void)
|
||||
{
|
||||
return sRealTimeData->boot_time + system_time()
|
||||
- (sRealTimeData->isGMT ? 0 : sRealTimeData->timezone_offset);
|
||||
return sRealTimeData->system_time_offset + system_time();
|
||||
}
|
||||
|
||||
|
||||
@@ -89,13 +83,3 @@ set_alarm(bigtime_t when, uint32 flags)
|
||||
// ToDo: set_alarm()
|
||||
return B_ERROR;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
_get_tzfilename(char* filename, size_t length)
|
||||
{
|
||||
if (filename == NULL)
|
||||
return;
|
||||
|
||||
strlcpy(filename, sRealTimeData->tzfilename, length);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user