1
/* ========================================================================== */
2
/* === umfpack_tictoc ======================================================= */
3
/* ========================================================================== */
5
/* -------------------------------------------------------------------------- */
6
/* UMFPACK Copyright (c) Timothy A. Davis, CISE, */
7
/* Univ. of Florida. All Rights Reserved. See ../Doc/License for License. */
8
/* web: http://www.cise.ufl.edu/research/sparse/umfpack */
9
/* -------------------------------------------------------------------------- */
11
void umfpack_tic (double stats [2]) ;
13
void umfpack_toc (double stats [2]) ;
17
Syntax (for all versions: di, dl, zi, and zl):
27
umfpack_tic returns the CPU time and wall clock time used by the process.
28
The CPU time includes both "user" and "system" time (the latter is time
29
spent by the system on behalf of the process, and is thus charged to the
30
process). umfpack_toc returns the CPU time and wall clock time since the
31
last call to umfpack_tic with the same stats array.
39
then stats [1] contains the time in seconds used by the code between
40
umfpack_tic and umfpack_toc, and stats [0] contains the wall clock time
41
elapsed between the umfpack_tic and umfpack_toc. These two routines act
42
just like tic and toc in MATLAB, except that the both process time and
43
wall clock time are returned.
45
This routine normally uses the sysconf and times routines in the POSIX
46
standard. If -DNPOSIX is defined at compile time, then the ANSI C clock
47
routine is used instead, and only the CPU time is returned (stats [0]
50
umfpack_tic and umfpack_toc are the routines used internally in UMFPACK
51
to time the symbolic analysis, numerical factorization, and the forward/
58
stats [0]: wall clock time, in seconds
59
stats [1]: CPU time, in seconds