author | marci |
Wed, 18 Feb 2004 15:58:28 +0000 | |
changeset 99 | f26897fb91fd |
child 117 | 67253d52b284 |
permissions | -rw-r--r-- |
marci@73 | 1 |
// -*- c++ -*- |
marci@73 | 2 |
#ifndef TIME_MEASURE_H |
marci@73 | 3 |
#define TIME_MEASURE_H |
marci@73 | 4 |
|
marci@73 | 5 |
#include <sys/time.h> |
marci@73 | 6 |
|
marci@73 | 7 |
double currTime() { |
marci@73 | 8 |
timeval tv; |
marci@73 | 9 |
//timezone tz; |
marci@73 | 10 |
gettimeofday(&tv, 0); |
marci@73 | 11 |
return double(tv.tv_sec)+double(tv.tv_usec)/1000000.0; |
marci@73 | 12 |
} |
marci@73 | 13 |
|
marci@73 | 14 |
#endif //TIME_MEASURE_H |