sscanf fixup
[fio.git] / time.h
CommitLineData
c223da83
JA
1#ifndef FIO_TIME_H
2#define FIO_TIME_H
3
4/*
5 * Clock sources
6 */
7enum fio_cs {
8 CS_GTOD = 1,
9 CS_CGETTIME,
10 CS_CPUCLOCK,
11};
12
13extern unsigned long long utime_since(struct timeval *, struct timeval *);
14extern unsigned long long utime_since_now(struct timeval *);
15extern unsigned long mtime_since(struct timeval *, struct timeval *);
16extern unsigned long mtime_since_now(struct timeval *);
17extern unsigned long time_since_now(struct timeval *);
18extern unsigned long mtime_since_genesis(void);
19extern void usec_spin(unsigned int);
20extern void usec_sleep(struct thread_data *, unsigned long);
21extern void fill_start_time(struct timeval *);
22extern void fio_gettime(struct timeval *, void *);
23extern void fio_gtod_init(void);
24extern void fio_clock_init(void);
25extern void fio_gtod_update(void);
26extern void set_genesis_time(void);
27extern int ramp_time_over(struct thread_data *);
28extern int in_ramp_time(struct thread_data *);
29extern unsigned long long genesis_cycles;
30extern void fio_time_init(void);
31
32#endif