1HPL_timer(3)                 HPL Library Functions                HPL_timer(3)
2
3
4

NAME

6       HPL_timer - Timer facility.
7

SYNOPSIS

9       #include "hpl.h"
10
11       void HPL_timer( const int I );
12

DESCRIPTION

14       HPL_timer  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_timer_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_timer calls in them. HPL_timer_enable() will re-enable
21       the  timer  functionality.  One  can retrieve  the current value  of  a
22       timer by calling
23
24       t0 = HPL_timer_inquire( HPL_WALL_TIME | HPL_CPU_TIME, I )
25
26       where   I   is the timer index in  [0..64).  To  initialize  the  timer
27       functionality, one must have called HPL_timer_boot()  prior to  any  of
28       the functions mentioned above.
29

ARGUMENTS

31       I       (global input)          const int
32               On entry, I specifies the timer to stop/start.
33

SEE ALSO

35       HPL_timer_cputime (3), HPL_timer_walltime (3).
36
37
38
39HPL 2.1                        October 26, 2012                   HPL_timer(3)
Impressum