Skip to content
Snippets Groups Projects
Commit f63f3b2a authored by Sebastian Meiling's avatar Sebastian Meiling
Browse files

cpu, native: replace timex_t in syscalls

parent d0140a9e
Branches
No related tags found
No related merge requests found
......@@ -424,10 +424,9 @@ int getpid(void)
int _gettimeofday(struct timeval *tp, void *restrict tzp)
{
(void) tzp;
timex_t now;
xtimer_now_timex(&now);
tp->tv_sec = now.seconds;
tp->tv_usec = now.microseconds;
uint64_t now = xtimer_now_usec64();
tp->tv_sec = now / US_PER_SEC;
tp->tv_usec = now - tp->tv_sec;
return 0;
}
#endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment