00001 #ifndef timer_H_
00002 #define timer_H_
00003
00004 #include "config.h"
00005 #if defined HAVE_LIBRT
00006 # include <time.h>
00007 #else
00008 # include <sys/time.h>
00009 #endif
00010
00017 inline double get_microsecond(struct timespec *res);
00018 inline double get_nanosecond(struct timespec *res);
00019 void init_timer();
00020
00021 int get_res(struct timespec *res);
00022
00023 int get_time(struct timespec *tp);
00024 double get_timediff(struct timespec *start, struct timespec * end);
00025
00030 #endif