lwip-contrib-mac/ports/unix/check/sys_arch.c
2012-02-14 21:55:20 +01:00

13 lines
205 B
C

#include <sys/time.h>
#include "lwip/opt.h"
u32_t
sys_now(void)
{
struct timeval tv;
if (gettimeofday(&tv, NULL))
return 0;
else
return tv.tv_sec * 1000 + tv.tv_usec / 1000;
}