當我們使用
gettimeofday(&time, NULL);時,會出現這樣一個WARNING
Implicit declaration of function 'gettimeofday' is invalid in C99
而經過搜索之後發現只需加入
#include <sys/time.h>
這個頭文件即可當我們使用
gettimeofday(&time, NULL);時,會出現這樣一個WARNING
Implicit declaration of function 'gettimeofday' is invalid in C99
而經過搜索之後發現只需加入
#include <sys/time.h>
這個頭文件即可