Sign in
fuchsia
/
fuchsia
/
6697568849879512cc8452e84c2db4c0da200466
/
.
/
zircon
/
third_party
/
ulib
/
musl
/
src
/
time
/
time.c
blob: 39ee2a5e38b931ae3fc29e3ea430266938db32b4 [
file
] [
log
] [
blame
]
#include
<time.h>
#include
"threads_impl.h"
time_t
time
(
time_t
*
t
)
{
struct
timespec ts
;
__clock_gettime
(
CLOCK_REALTIME
,
&
ts
);
if
(
t
)
*
t
=
ts
.
tv_sec
;
return
ts
.
tv_sec
;
}