src/work/marci/time_measure.h
author jacint
Thu, 19 Feb 2004 22:28:33 +0000
changeset 102 294cb99af985
child 117 67253d52b284
permissions -rw-r--r--
The best etik-ol flow alg so far.
     1 // -*- c++ -*-
     2 #ifndef TIME_MEASURE_H
     3 #define TIME_MEASURE_H
     4 
     5 #include <sys/time.h>
     6 
     7 double currTime() {
     8   timeval tv;
     9   //timezone tz;
    10   gettimeofday(&tv, 0);
    11   return double(tv.tv_sec)+double(tv.tv_usec)/1000000.0;
    12 }
    13 
    14 #endif //TIME_MEASURE_H