SyntaxFix
Write A Post
Hire A Developer
Questions
This will give you the time in seconds + microseconds
#include <sys/time.h> struct timeval tv; gettimeofday(&tv,NULL); tv.tv_sec // seconds tv.tv_usec // microseconds