repo.or.cz
/
haiku.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
headers/bsd: Add sys/queue.h.
[haiku.git]
/
src
/
system
/
libroot
/
posix
/
time
/
time.c
blob
ffa376420c2d7cb75663792a95ace6a43a153296
1
/*
2
* Copyright 2003-2007, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3
* Distributed under the terms of the MIT License.
4
*/
5
6
7
#include <time.h>
8
#include <OS.h>
9
10
11
time_t
12
time
(
time_t
*
timer
)
13
{
14
time_t
secs
=
real_time_clock
();
15
16
if
(
timer
)
17
*
timer
=
secs
;
18
19
return
secs
;
20
}