get_thread_times


bool get_thread_times(handle thread,
                      file_time* create,
                      file_time* exit,
                      file_time* kernel,
                      file_time* user);

This function obtains the times for the thread.

Parameters

handle thread

The handle of the thread whose times are being queried.

file_time* create

The time at which the thread was created.

file_time* exit

The time at which the thread was terminated. If the thread has not yet terminated, the contents of this structure are undefined.

file_time* kernel

The time that the thread spent executing in kernel mode.

file_time* user

The time that the thread spent executing in user mode.

Return

bool

true The function succeeded.
false The call failed.

Notes

See the notes for the class file_time for an explanation of the units that are used.