Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
6651ef1f060738ee1f50cac1fe6d8ce64c359022
/
.
/
src
/
time
/
time.c
blob: 4b95e7527d440b05b55ca100b465cd79feff652e [
file
] [
log
] [
blame
]
#include
<time.h>
#include
"syscall.h"
int
__clock_gettime
(
clockid_t
,
struct
timespec
*);
time_t
time
(
time_t
*
t
)
{
struct
timespec ts
;
__clock_gettime
(
CLOCK_REALTIME
,
&
ts
);
if
(
t
)
*
t
=
ts
.
tv_sec
;
return
ts
.
tv_sec
;
}