From: Don S. <sc...@ga...> - 2001-05-17 14:36:26
|
Greg, Many thanks for your suggestion. After much searching of hlp files, (unix background !!) I seem to have found the right subroutines to use GetProcessTimes. pid_t pid; HANDLE op; FILETIME stim,etim,ktim,utim; pid = getpid(); op = OpenProcess(PROCESS_QUERY_INFORMATION,FALSE,pid); GetProcessTimes(op,&stim,&etim,&ktim,&utim); ktim is kernel time and utim is user time Many Regards Don -- Greg Chicares wrote: > > The C standard says clock() should return > the implementation?s best approximation to the processor > time used by the program > but I guess we're seeing the dos heritage of the ms compiler > (we're using its runtime library). > > Maybe you need to use something like GetProcessTimes() if > you want true processor time. |