I\'m trying to print the values in a struct timeval variable as follows:
struct timeval
int main() { struct timeval *cur; do_gettimeofday(cur);
You need to include sys/time.h instead of time.h, struct timeval is defined in /usr/include/sys/time.h and not in /usr/include/time.h.