Closed masiafrest closed 4 years ago
main.cpp: In function ‘long long int current_timestamp()’: main.cpp:685:5: error: ‘gettimeofday’ was not declared in this scope 685 | gettimeofday(&te, NULL); // get current time | ^~~~
just found the fix i added #include <sys/time.h> on the file main.cpp
#include <sys/time.h>
main.cpp: In function ‘long long int current_timestamp()’: main.cpp:685:5: error: ‘gettimeofday’ was not declared in this scope 685 | gettimeofday(&te, NULL); // get current time | ^
~~~