summaryrefslogtreecommitdiffstats
path: root/include/timer.h
blob: 37b0fc94de676428d0c40229bd78c533993b7e04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef _TIMER_H_
#define _TIMER_H_

#include <sys/time.h>

struct timer {
	long credits;
	struct timeval start;
	struct timeval stop;
	struct timeval diff;
};

#define GET_CREDITS(x)   x.credits
#define GET_STARTTIME(x) x.start
#define GET_STOPTIME(x)  x.stop

#endif