David Ahern | fdf9dc4 | 2016-11-29 10:15:41 -0700 | [diff] [blame] | 1 | #ifndef _TIME_UTILS_H_ |
2 | #define _TIME_UTILS_H_ | ||||
3 | |||||
4 | struct perf_time_interval { | ||||
5 | u64 start, end; | ||||
6 | }; | ||||
7 | |||||
David Ahern | c284d66 | 2016-11-29 10:15:42 -0700 | [diff] [blame] | 8 | int parse_nsec_time(const char *str, u64 *ptime); |
9 | |||||
David Ahern | fdf9dc4 | 2016-11-29 10:15:41 -0700 | [diff] [blame] | 10 | int perf_time__parse_str(struct perf_time_interval *ptime, const char *ostr); |
11 | |||||
12 | bool perf_time__skip_sample(struct perf_time_interval *ptime, u64 timestamp); | ||||
13 | |||||
14 | #endif |