Header for a simple function to compute CPU user milliseconds.
More...
#include <sys/time.h>
Go to the source code of this file.
Header for a simple function to compute CPU user milliseconds.
- Author
- Matt Stallmann
- Date
- ca. 1990
- Id
- timing.h 20 2011-06-26 23:29:46Z mfms
Definition in file timing.h.
◆ currentCPUTime()
double currentCPUTime |
( |
| ) |
|
Return total user time used by this process in # of milliseconds, accurate to the nearest microsecond (depending on system) DEPRECATED by the function below (usually a bad idea to report milliseconds).
DEPRECATED – see timing.h
Definition at line 17 of file timing.c.
◆ getUserSeconds()
double getUserSeconds |
( |
| ) |
|
Return total user time used by this process in # of seconds. Anything below 0.1 should probably be considered "noise"
Definition at line 27 of file timing.c.
Referenced by main().