/***********************Time management***************************************/ #include <time.h> #include <sys/time.h> double gettime(){ struct timeval t; gettimeofday(&t, NULL); return t.tv_sec + t.tv_usec/1000000.0; } double startTime; /******************************************************************************/