1 #ifndef NM_STAT_USAGE_H_
2 #define NM_STAT_USAGE_H_
3 
4 #include <stdint.h>
5 
6 extern uint64_t nm_total_cpu_before;
7 extern uint64_t nm_total_cpu_after;
8 extern uint64_t nm_proc_cpu_before;
9 extern uint64_t nm_proc_cpu_after;
10 extern uint8_t  nm_cpu_iter;
11 extern double   nm_cpu_usage;
12 
13 #define NM_STAT_CLEAN() nm_total_cpu_before = nm_total_cpu_after = \
14     nm_proc_cpu_before = nm_proc_cpu_after = nm_cpu_iter = nm_cpu_usage = 0;
15 
16 double nm_stat_get_usage(int pid);
17 
18 #endif /* NM_STAT_USAGE_H_ */
19 /* vim:set ts=4 sw=4: */
20