summaryrefslogtreecommitdiffstats
path: root/src/include/timer.h
blob: cd1b2821a84dddd8d07d54edef106e34a618605c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#ifndef TIMER_H
#define TIMER_H

/*
 * This file should be removed as soon as there are no
 * currticks() abusers.
 */

#include <stddef.h>
/*
#warning Please fix me. I'm abusing the deprecated include/timer.h
*/
#include <unistd.h>

/* Duplicates include/gpxe/timer.h */
typedef uint32_t tick_t;

#define MSECS_IN_SEC (1000)
#define USECS_IN_SEC (1000*1000)
#define USECS_IN_MSEC (1000)

#define	TICKS_PER_SEC USECS_IN_SEC

tick_t currticks(void);

#endif