Skip site navigation (1)Skip section navigation (2)

  
 
  

home | help
HPL_timer(3)		      HPL Library Functions		    HPL_timer(3)

NAME
     HPL_timer - Timer facility.

SYNOPSIS
     #include "hpl.h"

     void HPL_timer( const int I );

DESCRIPTION
     HPL_timer	provides a  "stopwatch"  functionality	cpu/wall  timer  in sec-
     onds.  Up to  64  separate timers can be functioning at  once.   The  first
     call starts the timer,  and the second stops it.  This  routine can be dis-
     enabled   by  calling  HPL_timer_disable(),  so that calls to the timer are
     ignored.  This feature can be used to make sure certain sections of code do
     not affect timings,  even	if  they  call	routines  which  have  HPL_timer
     calls in them. HPL_timer_enable() will re-enable the  timer  functionality.
     One  can retrieve	the current value of a timer by calling

     t0 = HPL_timer_inquire( HPL_WALL_TIME | HPL_CPU_TIME, I )

     where  I  is the timer index in  [0..64).	To  initialize	the  timer func-
     tionality, one must have called HPL_timer_boot()  prior to any of the func-
     tions mentioned above.

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

SEE ALSO
     HPL_timer_cputime (3), HPL_timer_walltime (3).

HPL 2.3 			December 2, 2018		    HPL_timer(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=HPL_timer&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help