1
/* ========================================================================== */
2
/* === umfpack_timer ======================================================== */
3
/* ========================================================================== */
5
/* -------------------------------------------------------------------------- */
6
/* UMFPACK Version 4.1 (Apr. 30, 2003), Copyright (c) 2003 by Timothy A. */
7
/* Davis. All Rights Reserved. See ../README for License. */
8
/* email: davis@cise.ufl.edu CISE Department, Univ. of Florida. */
9
/* web: http://www.cise.ufl.edu/research/sparse/umfpack */
10
/* -------------------------------------------------------------------------- */
12
double umfpack_timer ( void ) ;
15
Syntax (for all versions: di, dl, zi, and zl):
19
t = umfpack_timer ( ) ;
23
Returns the CPU time used by the process. Includes both "user" and "system"
24
time (the latter is time spent by the system on behalf of the process, and
25
is thus charged to the process). It does not return the wall clock time.
26
This was the timer used internally in UMFPACK V4.0. See umfpack_tic and
27
umfpack_toc (the file umfpack_tictoc.h) for the timer used internally by
30
This routine uses the Unix getrusage routine, if available. It is less
31
subject to overflow than the ANSI C clock routine. If getrusage is not
32
available, the portable ANSI C clock routine is used instead.
33
Unfortunately, clock ( ) overflows if the CPU time exceeds 2147 seconds
34
(about 36 minutes) when sizeof (clock_t) is 4 bytes. If you have getrusage,
35
be sure to compile UMFPACK with the -DGETRUSAGE flag set; see umf_config.h
36
and the User Guide for details. Even the getrusage routine can overlow.