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

  
 
  

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

NAME
     HPL_timer_cputime - Return the CPU time.

SYNOPSIS
     #include "hpl.h"

     double HPL_timer_cputime();

DESCRIPTION
     HPL_timer_cputime	returns  the cpu time.	If HPL_USE_CLOCK is defined, the
     clock() function is used to return an approximation of processor time  used
     by  the  program.	 The  value  returned  is  the CPU time used so far as a
     clock_t;  to get the number of seconds used,  the	result	 is  divided  by
     CLOCKS_PER_SEC.  This function is part of the  ANSI/ISO C standard library.
     If   HPL_USE_TIMES  is defined, the times() function is used instead.  This
     function  returns	the current process times.  times() returns  the  number
     of  clock	ticks that have elapsed since the system has been up.  Otherwise
     and by default,  the  standard library function getrusage() is used.

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

HPL 2.3 			December 2, 2018	    HPL_timer_cputime(3)

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

home | help