mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-10-12 08:23:42 +00:00
13 lines
205 B
C
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;
|
|
}
|