pike.git
/
src
/
pike_rusage.h
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/pike_rusage.h:1:
/* || This file is part of Pike. For copyright information see COPYRIGHT. || Pike is distributed under GPL, LGPL and MPL. See the file COPYING || for more information.
-
|| $Id: pike_rusage.h,v 1.
15
2003/
02
/
14
20
:
00
:
53
mast Exp $
+
|| $Id: pike_rusage.h,v 1.
16
2003/
11
/
27
19
:
57
:
35
mast Exp $
*/ #ifndef PIKE_RUSAGE_H #define PIKE_RUSAGE_H
-
+
#ifdef HAVE_TIMES
+
extern long pike_clk_tck;
+
#define init_rusage() (pike_clk_tck = sysconf (_SC_CLK_TCK))
+
#else
+
#define init_rusage()
+
#endif
+
/* Prototypes begin here */ typedef long pike_rusage_t[29]; int pike_get_rusage(pike_rusage_t rusage_values); long *low_rusage(void); /* get_cpu_time returns the consumed cpu time (both in kernel and user * space, if applicable), or -1 if it couldn't be read. Note that * many systems have fairly poor resolution, e.g. on Linux x86 it's * only 0.01 second. gettimeofday can therefore be a better choice to * measure small time intervals. */