1 |
< |
/* Copyright (c) 1992 Regents of the University of California */ |
1 |
> |
/* Copyright (c) 1993 Regents of the University of California */ |
2 |
|
|
3 |
|
#ifndef lint |
4 |
|
static char SCCSid[] = "$SunId$ LBL"; |
155 |
|
gethostname(hostname, sizeof(hostname)); |
156 |
|
#else |
157 |
|
times(&tbuf); |
158 |
+ |
#ifdef _SC_CLK_TCK |
159 |
|
period = 1.0 / sysconf(_SC_CLK_TCK); |
160 |
+ |
#else |
161 |
+ |
period = 1.0 / 60.0; |
162 |
+ |
#endif |
163 |
|
u = ( tbuf.tms_utime + tbuf.tms_cutime ) * period; |
164 |
|
s = ( tbuf.tms_stime + tbuf.tms_cstime ) * period; |
165 |
|
uname(&nambuf); |