Crossings Minimization  1.0
timing.h
Go to the documentation of this file.
1 /**
2  * @file timing.h
3  * @brief Header for a simple function to compute CPU user milliseconds.
4  * @author Matt Stallmann
5  * @date ca. 1990
6  * $Id: timing.h 20 2011-06-26 23:29:46Z mfms $
7  */
8 
9 /* Propagate changes back to the C-Utilities repository. */
10 
11 #if ! defined(TIMING_H)
12 #define TIMING_H
13 
14 #include <sys/time.h>
15 
16 /**
17  * Return total user time used by this process in # of
18  * milliseconds, accurate to the nearest microsecond
19  * (depending on system)
20  * DEPRECATED by the function below (usually a bad idea to report
21  * milliseconds).
22  */
23 double currentCPUTime();
24 
25 /**
26  * Return total user time used by this process in # of seconds.
27  * Anything below 0.1 should probably be considered "noise"
28  */
29 double getUserSeconds();
30 
31 #endif /* ! defined(TIMING_H) */
32 
33 /* [Last modified: 2009 12 01 at 19:17:38 GMT] */
double getUserSeconds()
Definition: timing.c:27
double currentCPUTime()
Definition: timing.c:17