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>

这个头文件即可

相关文章:

  • 2021-05-03
  • 2022-01-28
  • 2021-11-04
  • 2021-12-23
  • 2021-05-13
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
相关资源
相似解决方案