---
name: "GetProcessTimes"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/GetProcessTimes"
---

# GetProcessTimes(3w)

## NAME

**GetProcessTimes** (KERNEL32.@)

## SYNOPSIS

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

## DESCRIPTION

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

olorin@fandra.org: 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.

## BUGS

KernelTime and UserTime are always for the current process

## IMPLEMENTATION

Declared in **"winbase.h"**.

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

Debug channel **"time"**.
