In linux, is there a built-in C library function for getting the CPU load of the machine? Presumably I could write my own function for opening and parsing a file in /proc, but it seems like there ought to be a better way.
- Doesn't need to be portable
- Must not require any libraries beyond a base RHEL4 installation.