提交 4c696243 编写于 作者: mysterywolf's avatar mysterywolf

update

上级 d92f8a53
......@@ -213,10 +213,9 @@ RT_WEAK clock_t clock(void)
/* TODO: timezone */
int gettimeofday(struct timeval *tp, struct timezone *tz)
{
time_t t = time(RT_NULL);
if (tp != RT_NULL)
{
tp->tv_sec = t;
tp->tv_sec = time(RT_NULL);
tp->tv_usec = 0;
}
return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册