Statistiques
| Révision :

root / www / HPL_ptimer.html

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

1
<HTML>
2
<HEAD>
3
<TITLE>HPL_ptimer HPL 2.0 Library Functions September 10, 2008</TITLE> 
4
</HEAD>
5

    
6
<BODY BGCOLOR="WHITE" TEXT = "#000000" LINK = "#0000ff" VLINK = "#000099"
7
      ALINK = "#ffff00">
8

    
9
<H1>Name</H1>
10
<B>HPL_ptimer</B> Timer facility.
11

    
12
<H1>Synopsis</H1>
13
<CODE>#include "hpl.h"</CODE><BR><BR>
14
<CODE>void</CODE>
15
<CODE>HPL_ptimer(</CODE>
16
<CODE>const int</CODE>
17
<CODE>I</CODE>
18
<CODE>);</CODE>
19

    
20
<H1>Description</H1>
21
<B>HPL_ptimer</B>
22
provides a  "stopwatch"  functionality  cpu/wall  timer in
23
seconds.  Up to  64  separate timers can be functioning at once.  The
24
first call starts the timer,  and the second stops it.  This  routine
25
can be disenabled  by calling HPL_ptimer_disable(),  so that calls to
26
the timer are ignored.  This feature can be used to make sure certain
27
sections of code do not affect timings,  even  if  they call routines
28
which have HPL_ptimer calls in them. HPL_ptimer_enable()  will enable
29
the  timer  functionality.  One  can retrieve  the current value of a
30
timer by calling
31
 
32
t0 = HPL_ptimer_inquire( HPL_WALL_TIME | HPL_CPU_TIME, I )
33
 
34
where  I  is the timer index in  [0..64).  To  inititialize the timer
35
functionality, one must have called HPL_ptimer_boot() prior to any of
36
the functions mentioned above.
37

    
38
<H1>Arguments</H1>
39
<PRE>
40
I       (global input)                const int
41
        On entry, I specifies the timer to stop/start.
42
</PRE>
43

    
44
<H1>See Also</H1>
45
<A HREF="HPL_ptimer_cputime.html">HPL_ptimer_cputime</A>,
46
<A HREF="HPL_ptimer_walltime.html">HPL_ptimer_walltime</A>.
47

    
48
</BODY>
49
</HTML>