tagscan: damn it! forgot to remove debugging code
[k8muffin.git] / src / k8clock.h
blob1a62027681d02e7cf83063bf46fdf4cf8e80652b
1 #ifndef _K8CLOCK_H_
2 #define _K8CLOCK_H_
4 #ifdef __cplusplus
5 extern "C" {
6 #endif
8 #include <stdint.h>
9 #include <time.h>
12 typedef enum {
13 K8CLOCK_ERROR = -1,
14 K8CLOCK_HPET = 0,
15 K8CLOCK_OTHER = 1
16 } k8clock_type;
19 typedef struct {
20 struct timespec stt;
21 } k8clock_t;
24 extern k8clock_type k8clock_initialized;
27 extern void k8clock_init (k8clock_t *clk);
28 extern uint64_t k8clock_ms (k8clock_t *clk); // milliseconds; (0: no timer available)
29 extern uint64_t k8clock_micro (k8clock_t *clk); // microseconds; (0: no timer available)
31 extern uint64_t k8clock (void); // milliseconds; (0: no timer available)
32 extern uint64_t k8clockmicro (void); // microseconds; (0: no timer available)
35 #ifdef __cplusplus
37 #endif
38 #endif