diff options
Diffstat (limited to 'winsup/cygwin/local_includes/loadavg.h')
-rw-r--r-- | winsup/cygwin/local_includes/loadavg.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/winsup/cygwin/local_includes/loadavg.h b/winsup/cygwin/local_includes/loadavg.h new file mode 100644 index 000000000..e6fb594d0 --- /dev/null +++ b/winsup/cygwin/local_includes/loadavg.h @@ -0,0 +1,24 @@ +/* loadavg.h: load average support. + + This file is part of Cygwin. + + This software is a copyrighted work licensed under the terms of the + Cygwin license. Please consult the file "CYGWIN_LICENSE" for + details. */ + +#ifndef LOADAVG_H +#define LOADAVG_H + +class loadavginfo +{ + double loadavg[3]; + time_t last_time; + + public: + void initialize (); + int fetch (double _loadavg[], int nelem); + void update_loadavg (); + void calc_load (int index, int delta_time, int decay_time, double n); +}; + +#endif /* LOADAVG_H */ |