add readme
[Praktika/Routenplanung/cpp-base.git] / timer.h
1 #ifndef TIMER_H
2 #define TIMER_H
3
4 #include <sys/time.h>
5
6 inline
7 long long get_micro_time(){
8         timeval t;
9         gettimeofday(&t, 0);
10         return t.tv_sec*1000000ll+t.tv_usec;
11 }
12
13 #endif