jack2 codebase
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
153B

  1. #include <sys/sysinfo.h>
  2. long uptime(void) {
  3. struct sysinfo si;
  4. if (sysinfo(&si) != 0)
  5. {
  6. return -1;
  7. }
  8. return si.uptime;
  9. }