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

NAME

6       HPL_ptimer_cputime - Return the CPU time.
7

SYNOPSIS

9       #include "hpl.h"
10
11       double HPL_ptimer_cputime();
12

DESCRIPTION

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

SEE ALSO

26       HPL_ptimer_walltime (3), HPL_ptimer (3).
27
28
29
30HPL 2.2                        February 24, 2016         HPL_ptimer_cputime(3)
Impressum