Statistiques
| Révision :

root / www / HPL_ptimer_cputime.html @ 7

Historique | Voir | Annoter | Télécharger (1,17 ko)

1
<HTML>
2
<HEAD>
3
<TITLE>HPL_ptimer_cputime HPL 2.0 Library Functions September 10, 2008</TITLE> 
4
</HEAD>
5

    
6
<BODY BGCOLOR="WHITE" TEXT = "#000000" LINK = "#0000ff" VLINK = "#000099"
7
      ALINK = "#ffff00">
8

    
9
<H1>Name</H1>
10
<B>HPL_ptimer_cputime</B> Return the CPU time.
11

    
12
<H1>Synopsis</H1>
13
<CODE>#include "hpl.h"</CODE><BR><BR>
14
<CODE>double</CODE>
15
<CODE>HPL_ptimer_cputime();</CODE>
16

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

    
30
<H1>See Also</H1>
31
<A HREF="HPL_ptimer_walltime.html">HPL_ptimer_walltime</A>,
32
<A HREF="HPL_ptimer.html">HPL_ptimer</A>.
33

    
34
</BODY>
35
</HTML>