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"
27 dtime_ (float *tarray
)
30 #ifndef CLOCKS_PER_SECOND
31 #define CLOCKS_PER_SECOND Hz
36 tarray
[0] = (t
- t0
) / CLOCKS_PER_SECOND
;
44 tarray
[0] = (double) (t
.tms_utime
- t0
.tms_utime
) / Hz
;
45 tarray
[1] = (double) (t
.tms_stime
- t0
.tms_stime
) / Hz
;
47 return tarray
[0] + tarray
[1];