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