关于"implicit declaration of function 'gettimeofday' is invalid in c99"的解决

http://blog.csdn.net/macmini/article/details/10503799

当我们使用

 gettimeofday(&time, NULL);时,会出现这样一个WARNING

 Implicit declaration of function 'gettimeofday' is invalid in C99

而经过搜索之后发现只需加入

 

#include <sys/time.h>

这个头文件即可

posted on 2015-03-15 21:36  沉淀2014  阅读(6203)  评论(1编辑  收藏  举报

导航