1HPL_timer_cputime(3) HPL Library Functions HPL_timer_cputime(3)
2
3
4
6 HPL_timer_cputime - Return the CPU time.
7
9 #include "hpl.h"
10
11 double HPL_timer_cputime();
12
14 HPL_timer_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
26 HPL_timer_walltime (3), HPL_timer (3).
27
28
29
30HPL 2.1 October 26, 2012 HPL_timer_cputime(3)