12 int gettimeofday(struct timeval
*__restrict tp
, void *__restrict tzp
)
16 memset(&m
, 0, sizeof(m
));
18 if (_syscall(PM_PROC_NR
, PM_GETTIMEOFDAY
, &m
) < 0)
21 tp
->tv_sec
= m
.m_pm_lc_time
.sec
;
22 tp
->tv_usec
= m
.m_pm_lc_time
.nsec
/ 1000;