aboutsummaryrefslogtreecommitdiff
path: root/src/netcpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/netcpu.h')
-rw-r--r--src/netcpu.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/netcpu.h b/src/netcpu.h
new file mode 100644
index 0000000..b011b1d
--- /dev/null
+++ b/src/netcpu.h
@@ -0,0 +1,17 @@
+/* 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 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);