forked from CyanogenMod/android_external_netperf
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnetcpu.h
More file actions
19 lines (15 loc) · 611 Bytes
/
netcpu.h
File metadata and controls
19 lines (15 loc) · 611 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/* This should define all the common routines etc exported by the
various netcpu_mumble.c files raj 2005-01-26 */
extern void cpu_util_init(void);
extern void cpu_util_terminate(void);
extern int get_cpu_method();
#ifdef WIN32
/* +*+ temp until I figure out what header this is in; I know it's
there someplace... */
typedef unsigned __int64 uint64_t;
#endif
extern void get_cpu_idle(uint64_t *res);
extern float calibrate_idle_rate(int iterations, int interval);
extern float calc_cpu_util_internal(float elapsed);
extern void cpu_start_internal(void);
extern void cpu_stop_internal(void);