Implemented time() - it still doesn't work, though, as real_time_clock()
is not yet implemented. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5277 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
4e0ad75221
commit
28d179274c
@ -1,21 +1,21 @@
|
||||
/*
|
||||
** Copyright 2002, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
** Copyright 2003, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
|
||||
** Distributed under the terms of the OpenBeOS License.
|
||||
*/
|
||||
|
||||
|
||||
#include <time.h>
|
||||
#include <syscalls.h>
|
||||
#include <OS.h>
|
||||
|
||||
|
||||
time_t
|
||||
time(time_t *timer)
|
||||
{
|
||||
// ToDo: implement time()
|
||||
time_t secs = real_time_clock();
|
||||
|
||||
if (timer)
|
||||
*timer = 0;
|
||||
*timer = secs;
|
||||
|
||||
return 0;
|
||||
return secs;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user