COIN-OR::LEMON - Graph Library

source: lemon-0.x/src/work/marci/time_measure.h @ 108:0351b00fd283

Last change on this file since 108:0351b00fd283 was 73:1b4a25e49222, checked in by marci, 21 years ago

.

File size: 244 bytes
Line 
1// -*- c++ -*-
2#ifndef TIME_MEASURE_H
3#define TIME_MEASURE_H
4
5#include <sys/time.h>
6
7double 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
Note: See TracBrowser for help on using the repository browser.