Rev 1820 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
/* ========================================================================== *//* === umfpack_timer ======================================================== *//* ========================================================================== *//* -------------------------------------------------------------------------- *//* UMFPACK Version 4.5, Copyright (c) 2005 by Timothy A. Davis. CISE Dept, *//* Univ. of Florida. All Rights Reserved. See ../Doc/License for License. *//* web: http://www.cise.ufl.edu/research/sparse/umfpack *//* -------------------------------------------------------------------------- */double umfpack_timer ( void ) ;/*Syntax (for all versions: di, dl, zi, and zl):#include "umfpack.h"double t ;t = umfpack_timer ( ) ;Purpose:Returns the CPU time used by the process. Includes both "user" and "system"time (the latter is time spent by the system on behalf of the process, andis thus charged to the process). It does not return the wall clock time.See umfpack_tic and umfpack_toc (the file umfpack_tictoc.h) for the timerused internally by UMFPACK.This routine uses the Unix getrusage routine, if available. It is lesssubject to overflow than the ANSI C clock routine. If getrusage is notavailable, the portable ANSI C clock routine is used instead.Unfortunately, clock ( ) overflows if the CPU time exceeds 2147 seconds(about 36 minutes) when sizeof (clock_t) is 4 bytes. If you have getrusage,be sure to compile UMFPACK with the -DGETRUSAGE flag set; see umf_config.hand the User Guide for details. Even the getrusage routine can overlow.Arguments:None.*/