9 #define _INCLUDE_POSIX_SOURCE /* for HP-UX */
10 #define _INCLUDE_XOPEN_SOURCE /* for HP-UX */
11 #include "sys/types.h"
12 #include "sys/times.h"
28 dtime_(tarray
) float *tarray
;
34 #ifndef CLOCKS_PER_SECOND
35 #define CLOCKS_PER_SECOND Hz
40 tarray
[0] = (t
- t0
) / CLOCKS_PER_SECOND
;
48 tarray
[0] = (double)(t
.tms_utime
- t0
.tms_utime
) / Hz
;
49 tarray
[1] = (double)(t
.tms_stime
- t0
.tms_stime
) / Hz
;
51 return tarray
[0] + tarray
[1];