1 #ifndef _TIMINGS_ 2 #define _TIMINGS_ 3 #include <sys/time.h> 4 static struct timeval TV ; 5 static struct timezone TZ ; 6 #define MARKTIME(t) \ 7 gettimeofday(&TV, &TZ) ; \ 8 t = (TV.tv_sec + 0.000001*TV.tv_usec) 9 #endif 10 11