/* $Id: get_sysUptime.c,v 1.1 1996/10/15 10:42:53 haslbecs Exp $ */ /* ** "The time since last boot in seconds." */ #include <unistd.h> #include <sys/types.h> #include <sys/times.h> #include "get_sysUptime.h" /* uptime des systems. */ const int *get_sysUptime( int *param_list ) { static int uptime; struct tms tbuf; uptime = times( &tbuf ) / sysconf( _SC_CLK_TCK );; return &uptime; }