From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <1996q2-0679.alphant@archive.invalid> X-Archive-Original-Message-ID: <199606201916.TAA22224@rainbow.drea.dnd.ca> Date: Thu, 20 Jun 1996 19:16:16 GMT From: JimColwell@gumby Subject: CPUtime benchmarking Thanks for all of the replies with suggestions on how to time program execution, but it seems that an equivalent to the (ugh!) unix time or timex does not exist on winNT. I don't have the reskit timethis, but it apparently measures elapsed time (i.e. wall clock time), which I don't want. I've found a way of using PerformanceMonitor to get an accurate measurement of a specific process's CPU time, but it's very awkward. Essentially, I want to time the CPU seconds required to run a program called BM5. PerfMon provides %processor time for a specific process (BM5), but the process has to be running for you to pick it from the Edit/Add_to_chart/(object)Process (instance) menu. Since this program only takes about 6 seconds to execute on my alpha404/233 (was 300 seconds on a DEC20/60), it is difficult to pick it up. The solution was to do a dummy run of BM5 with the purpose of picking the process name BM5 (no fumble fingers), and save the setup. Later, you can run PerfMon with this setup, and sure enough, it logs the BM5 process when it appears. Looking at %processor time for process BM5 shows some peaks and valleys, with an (arithmetic) average value of 93%. Applying this 93% to the wall clock time measured when running BM5 (while PerfMon is also running) gives the cpu time required for BM5 (sum of cpu times in user mode and system support). If you simply use the processor or system %processor time, it shows 100% for the duration of the BM5 run (i.e. includes added system overhead not associated with the BM5 process). p.s. it would be nice to have a dialog box for process object/instance selection to define a process which is not currently running. Thanks & bye. Jim Colwell, Ship Dynamics Group, DREA .........alphaNT rules ! - (The above mail message was from "JimColwell@gumby" , to alphant) To subscribe to this list: To: majordomo@garply.com, Text: SUBSCRIBE ALPHANT To unsubscribe: To: majordomo@garply.com, Text: UNSUBSCRIBE ALPHANT Alpha NT FAQ: http://www.garply.com/tech/comp/sw/pc/nt/ant_faq.html