get_process_times


bool get_process_times(handle process,
                       file_time* create,
                       file_time* exit,
                       file_time* kernel,
                       file_time* user)

This function obtains the times for the process.

Parameters

handle process

The handle of the process whose times are being queried.

file_time* create

The time at which the process was created.

file_time* exit

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

file_time* kernel

The time that the process spent executing in kernel mode.

file_time* user

The time that the process 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.