Sign in
android
/
platform
/
external
/
musl
/
290db7ffda2590ff26037056c50d367583af0069
/
.
/
compat
/
time32
/
clock_getres_time32.c
blob: 47a24c1350893504a1e143fad3f6192b1e880f56 [
file
] [
log
] [
blame
]
#include
"time32.h"
#include
<time.h>
int
__clock_getres_time32
(
clockid_t
clk
,
struct
timespec32
*
ts32
)
{
struct
timespec ts
;
int
r
=
clock_getres
(
clk
,
&
ts
);
if
(!
r
&&
ts32
)
{
ts32
->
tv_sec
=
ts
.
tv_sec
;
ts32
->
tv_nsec
=
ts
.
tv_nsec
;
}
return
r
;
}