seconds.h File Reference

Portable wrappers for system-dependent timing routines. More...

#include "utilib_dll.h"

Go to the source code of this file.

Functions

UTILIB_API double CPUSeconds ()
 The `absolute' number of CPU seconds (User+System CPU seconds).

UTILIB_API double ElapsedCPUSeconds ()
 The number of CPU seconds elapsed since the code was started or since the last call to InitializdTiming.

UTILIB_API double WallClockSeconds ()
 The `absolute' number of wall-clock seconds.

UTILIB_API double ElapsedWallClockSeconds ()
 The number of elapsed wall-clock seconds since the code was started or since the last call to InitializeTiming.

UTILIB_API int InitializeTiming ()
 Resets the timing state for ElapsedCPUSeconds and ElapsedWallClockSeconds.

UTILIB_API double CurrentTime ()
 The current time.


Detailed Description

Portable wrappers for system-dependent timing routines.

Both CPU time and wall clock (elapsed) time are provided. These routines were derived from similar routines developed by Scott Kohn for LPARX.