root / man / man3 / HPL_timer_cputime.3 @ 1
Historique | Voir | Annoter | Télécharger (962 octet)
1 |
.TH HPL_timer_cputime 3 "September 10, 2008" "HPL 2.0" "HPL Library Functions" |
---|---|
2 |
.SH NAME |
3 |
HPL_timer_cputime \- Return the CPU time. |
4 |
.SH SYNOPSIS |
5 |
\fB\&#include "hpl.h"\fR |
6 |
|
7 |
\fB\&double\fR |
8 |
\fB\&HPL_timer_cputime();\fR |
9 |
.SH DESCRIPTION |
10 |
\fB\&HPL_timer_cputime\fR |
11 |
returns the cpu time. If HPL_USE_CLOCK is defined, |
12 |
the clock() function is used to return an approximation of processor |
13 |
time used by the program. The value returned is the CPU time used so |
14 |
far as a clock_t; to get the number of seconds used, the result is |
15 |
divided by CLOCKS_PER_SEC. This function is part of the ANSI/ISO C |
16 |
standard library. If HPL_USE_TIMES is defined, the times() function |
17 |
is used instead. This function returns the current process times. |
18 |
times() returns the number of clock ticks that have elapsed since the |
19 |
system has been up. Otherwise and by default, the standard library |
20 |
function getrusage() is used. |
21 |
.SH SEE ALSO |
22 |
.BR HPL_timer_walltime \ (3), |
23 |
.BR HPL_timer \ (3). |