GetProcessTimes(3w)

GetProcessTimes3w

Usage

BOOL GetProcessTimes
(
HANDLE hprocess,
LPFILETIME lpCreationTime,
LPFILETIME lpExitTime,
LPFILETIME lpKernelTime,
LPFILETIME lpUserTime
)

Overview

Get the user and kernel execution times of a process, along with the creation and exit times if known.

Params

hprocess [In] The process to be queried.

lpCreationTime [Out] The creation time of the process.

lpExitTime [Out] The exit time of the process if exited.

lpKernelTime [Out] The time spent in kernel routines in 100's of nanoseconds.

lpUserTime [Out] The time spent in user routines in 100's of nanoseconds.

Returns

TRUE.

Notes

[email protected]: Would be nice to subtract the cpu time used by Wine at startup. Also, there is a need to separate times used by different applications.

Implementation

Declared in "winbase.h".

Implemented in "dlls/kernel32/time.c".

Debug channel "time".

Releases

6 releases since Debian 2.0 (Hamm); the text changed 5 times.

  1. 2.0
  2. 2.1
  3. 4.0
  4. 5.0
  5. 6.0
  6. 7

Bugs

KernelTime and UserTime are always for the current process

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.