Statistiques
| Révision :

root / man / man3 / HPL_ptimer.3 @ 1

Historique | Voir | Annoter | Télécharger (1,21 ko)

1 1 equemene
.TH HPL_ptimer 3 "September 10, 2008" "HPL 2.0" "HPL Library Functions"
2 1 equemene
.SH NAME
3 1 equemene
HPL_ptimer \- Timer facility.
4 1 equemene
.SH SYNOPSIS
5 1 equemene
\fB\&#include "hpl.h"\fR
6 1 equemene
7 1 equemene
\fB\&void\fR
8 1 equemene
\fB\&HPL_ptimer(\fR
9 1 equemene
\fB\&const int\fR
10 1 equemene
\fI\&I\fR
11 1 equemene
\fB\&);\fR
12 1 equemene
.SH DESCRIPTION
13 1 equemene
\fB\&HPL_ptimer\fR
14 1 equemene
provides a  "stopwatch"  functionality  cpu/wall  timer in
15 1 equemene
seconds.  Up to  64  separate timers can be functioning at once.  The
16 1 equemene
first call starts the timer,  and the second stops it.  This  routine
17 1 equemene
can be disenabled  by calling HPL_ptimer_disable(),  so that calls to
18 1 equemene
the timer are ignored.  This feature can be used to make sure certain
19 1 equemene
sections of code do not affect timings,  even  if  they call routines
20 1 equemene
which have HPL_ptimer calls in them. HPL_ptimer_enable()  will enable
21 1 equemene
the  timer  functionality.  One  can retrieve  the current value of a
22 1 equemene
timer by calling
23 1 equemene
24 1 equemene
t0 = HPL_ptimer_inquire( HPL_WALL_TIME | HPL_CPU_TIME, I )
25 1 equemene
26 1 equemene
where  I  is the timer index in  [0..64).  To  inititialize the timer
27 1 equemene
functionality, one must have called HPL_ptimer_boot() prior to any of
28 1 equemene
the functions mentioned above.
29 1 equemene
.SH ARGUMENTS
30 1 equemene
.TP 8
31 1 equemene
I       (global input)          const int
32 1 equemene
On entry, I specifies the timer to stop/start.
33 1 equemene
.SH SEE ALSO
34 1 equemene
.BR HPL_ptimer_cputime \ (3),
35 1 equemene
.BR HPL_ptimer_walltime \ (3).