changeset 73 | 1b4a25e49222 |
child 117 | 67253d52b284 |
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/work/marci/time_measure.h Fri Feb 13 15:57:22 2004 +0000 1.3 @@ -0,0 +1,14 @@ 1.4 +// -*- c++ -*- 1.5 +#ifndef TIME_MEASURE_H 1.6 +#define TIME_MEASURE_H 1.7 + 1.8 +#include <sys/time.h> 1.9 + 1.10 +double currTime() { 1.11 + timeval tv; 1.12 + //timezone tz; 1.13 + gettimeofday(&tv, 0); 1.14 + return double(tv.tv_sec)+double(tv.tv_usec)/1000000.0; 1.15 +} 1.16 + 1.17 +#endif //TIME_MEASURE_H