Partager via


Timing a Thread

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

The GetThreadTimes function obtains timing information for a thread. GetThreadTimes returns the following information:

  • The thread creation time.
  • The length of time the thread has run in kernel mode.
  • The length of time the thread has run in user mode.

These times do not include time spent running system threads or waiting in a suspended or blocked state.

If the thread has exited, GetThreadTimes returns the thread exit time.

See Also

Concepts

Threads