2002-10-05 21:07:03 +04:00
|
|
|
/*
|
|
|
|
** Copyright 2002, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
|
|
|
** Distributed under the terms of the OpenBeOS License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#include <OS.h>
|
|
|
|
#include "syscalls.h"
|
|
|
|
|
|
|
|
|
|
|
|
uint32
|
|
|
|
real_time_clock(void)
|
|
|
|
{
|
|
|
|
// ToDo: real_time_clock()
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void
|
2003-10-28 16:13:35 +03:00
|
|
|
set_real_time_clock(uint32 secs)
|
2002-10-05 21:07:03 +04:00
|
|
|
{
|
|
|
|
// ToDo: set_real_time_clock()
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
bigtime_t
|
|
|
|
real_time_clock_usecs(void)
|
|
|
|
{
|
|
|
|
// ToDo: real_time_clock_usecs()
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
status_t
|
|
|
|
set_timezone(char *timezone)
|
|
|
|
{
|
|
|
|
// ToDo: set_timezone()
|
|
|
|
return B_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2002-10-17 23:30:59 +04:00
|
|
|
/*
|
|
|
|
// ToDo: currently defined in atomic.S - but should be in its own file time.S
|
2002-10-05 21:07:03 +04:00
|
|
|
bigtime_t
|
|
|
|
system_time(void)
|
|
|
|
{
|
2002-10-17 23:30:59 +04:00
|
|
|
// time since booting in microseconds
|
2002-10-05 21:07:03 +04:00
|
|
|
return sys_system_time();
|
|
|
|
}
|
2002-10-17 23:30:59 +04:00
|
|
|
*/
|
2002-10-05 21:07:03 +04:00
|
|
|
|
|
|
|
|
|
|
|
bigtime_t
|
|
|
|
set_alarm(bigtime_t when, uint32 flags)
|
|
|
|
{
|
|
|
|
// ToDo: set_alarm()
|
|
|
|
return B_ERROR;
|
|
|
|
}
|