Statistiques
| Révision :

root / man / man3 / HPL_timer_cputime.3 @ 1

Historique | Voir | Annoter | Télécharger (962 octet)

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