From 1172b47d1e8fef2c894a65117956e9a5c0a5d0e5 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Sun, 30 Jun 2013 22:37:05 +0800 Subject: [PATCH] add sys_now() function porting --- components/net/lwip-1.4.1/src/arch/sys_arch.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/net/lwip-1.4.1/src/arch/sys_arch.c b/components/net/lwip-1.4.1/src/arch/sys_arch.c index e18ed9134..fc3b9b844 100644 --- a/components/net/lwip-1.4.1/src/arch/sys_arch.c +++ b/components/net/lwip-1.4.1/src/arch/sys_arch.c @@ -552,6 +552,11 @@ u32_t sys_jiffies(void) return rt_tick_get(); } +u32_t sys_now(void) +{ + return rt_tick_get() * (1000 / RT_TICK_PER_SECOND); +} + #ifdef RT_LWIP_PPP u32_t sio_read(sio_fd_t fd, u8_t *buf, u32_t size) {