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:
@@ -1,21 +1,21 @@
|
|||||||
/*
|
/*
|
||||||
** Copyright 2002, Axel Dörfler, [email protected]. All rights reserved.
|
** Copyright 2003, Axel Dörfler, [email protected]. All rights reserved.
|
||||||
** Distributed under the terms of the OpenBeOS License.
|
** Distributed under the terms of the OpenBeOS License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <syscalls.h>
|
#include <OS.h>
|
||||||
|
|
||||||
|
|
||||||
time_t
|
time_t
|
||||||
time(time_t *timer)
|
time(time_t *timer)
|
||||||
{
|
{
|
||||||
// ToDo: implement time()
|
time_t secs = real_time_clock();
|
||||||
|
|
||||||
if (timer)
|
if (timer)
|
||||||
*timer = 0;
|
*timer = secs;
|
||||||
|
|
||||||
return 0;
|
return secs;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user