~ubuntu-branches/ubuntu/saucy/python-scipy/saucy

« back to all changes in this revision

Viewing changes to Lib/sandbox/pysparse/umfpack/umfpack_timer.h

  • Committer: Bazaar Package Importer
  • Author(s): Ondrej Certik
  • Date: 2008-06-16 22:58:01 UTC
  • mfrom: (2.1.24 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080616225801-irdhrpcwiocfbcmt
Tags: 0.6.0-12
* The description updated to match the current SciPy (Closes: #489149).
* Standards-Version bumped to 3.8.0 (no action needed)
* Build-Depends: netcdf-dev changed to libnetcdf-dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* ========================================================================== */
2
 
/* === umfpack_timer ======================================================== */
3
 
/* ========================================================================== */
4
 
 
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
 
/* -------------------------------------------------------------------------- */
11
 
 
12
 
double umfpack_timer ( void ) ;
13
 
 
14
 
/*
15
 
Syntax (for all versions: di, dl, zi, and zl):
16
 
 
17
 
    #include "umfpack.h"
18
 
    double t ;
19
 
    t = umfpack_timer ( ) ;
20
 
 
21
 
Purpose:
22
 
 
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
28
 
    UMFPACK V4.1.
29
 
 
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.
37
 
 
38
 
Arguments:
39
 
 
40
 
    None.
41
 
*/