umfpack_timer.h

Go to the documentation of this file.
00001 /* ========================================================================== */
00002 /* === umfpack_timer ======================================================== */
00003 /* ========================================================================== */
00004 
00005 /* -------------------------------------------------------------------------- */
00006 /* UMFPACK Version 4.3 (Jan. 16, 2004), Copyright (c) 2004 by Timothy A.      */
00007 /* Davis.  All Rights Reserved.  See ../README for License.                   */
00008 /* email: davis@cise.ufl.edu    CISE Department, Univ. of Florida.            */
00009 /* web: http://www.cise.ufl.edu/research/sparse/umfpack                       */
00010 /* -------------------------------------------------------------------------- */
00011 
00012 double umfpack_timer ( void ) ;
00013 
00014 /*
00015 Syntax (for all versions: di, dl, zi, and zl):
00016 
00017     #include "umfpack.h"
00018     double t ;
00019     t = umfpack_timer ( ) ;
00020 
00021 Purpose:
00022 
00023     Returns the CPU time used by the process.  Includes both "user" and "system"
00024     time (the latter is time spent by the system on behalf of the process, and
00025     is thus charged to the process).  It does not return the wall clock time.
00026     This was the timer used internally in UMFPACK V4.0.  See umfpack_tic and
00027     umfpack_toc (the file umfpack_tictoc.h) for the timer used internally by
00028     UMFPACK V4.1.
00029 
00030     This routine uses the Unix getrusage routine, if available.  It is less
00031     subject to overflow than the ANSI C clock routine.  If getrusage is not
00032     available, the portable ANSI C clock routine is used instead.
00033     Unfortunately, clock ( ) overflows if the CPU time exceeds 2147 seconds
00034     (about 36 minutes) when sizeof (clock_t) is 4 bytes.  If you have getrusage,
00035     be sure to compile UMFPACK with the -DGETRUSAGE flag set; see umf_config.h
00036     and the User Guide for details.  Even the getrusage routine can overlow.
00037 
00038 Arguments:
00039 
00040     None.
00041 */

Generated on Sun May 27 11:59:43 2007 for FEMFLUID by  doxygen 1.4.6