Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Timing program execution on Windows

RE: Timing program execution on Windows

From: Bobak, Mark <Mark.Bobak_at_il.proquest.com>
Date: Fri, 1 Dec 2006 15:18:33 -0500
Message-ID: <AA29A27627F842409E1D18FB19CDCF270A83248F@AABO-EXCHANGE02.bos.il.pqe>


Heh...I forgot that I first tried it w/ DIR as well. I had the same realization, that it wouldn't work cause it was a built-in, and that's when I tried ipconfig. Guess I should have mentioned that...;-)  

-Mark
 

--

Mark J. Bobak

Senior Oracle Architect

ProQuest Information & Learning

There is nothing so useless as doing efficiently that which shouldn't be done at all. -Peter F. Drucker, 1909-2005  


From: Jared Still [mailto:jkstill_at_gmail.com] Sent: Friday, December 01, 2006 3:08 PM
To: Bobak, Mark
Cc: Oracle-L Freelists
Subject: Re: Timing program execution on Windows

On 12/1/06, Bobak, Mark <Mark.Bobak_at_il.proquest.com> wrote:

        C:\Documents and Settings\mbobak>ntimer ipconfig          

        Windows IP Configuration                   

        Ethernet adapter Local Area Connection:          

	        Connection-specific DNS Suffix  . : bos.il.pqe
	        IP Address. . . . . . . . . . . . : 172.25.64.107
	        Subnet Mask . . . . . . . . . . . : 255.255.254.0
	        Default Gateway . . . . . . . . . : 172.25.64.1
	 
	ContextSwitches - 1642
	First level fills = 0
	Second level fills = 0
	 
	ETime(   0:00:00.328 ) UTime(   0:00:00.015 ) KTime(
0:00:00.062 )
	ITime(   0:00:00.500 )
	 


Hmm...
I tried it with DIR

C:\Program Files\Windows Resource Kits\Tools>.\ntimer.exe dir CreateProcess(dir) failed 2

C:\Program Files\Windows Resource Kits\Tools>

The problem was that DIR is a builtin.
This works:

C:\Program Files\Windows Resource Kits\Tools>.\ntimer.exe cmd /c dir  Volume in drive C has no label.
 Volume Serial Number is C041-CD44

 Directory of C:\Program Files\Windows Resource Kits\Tools

12/01/2006  11:31 AM    <DIR>          .
12/01/2006  11:31 AM    <DIR>          ..
04/18/2003  06:05 PM            39,424 acctinfo.dll
...
04/18/2003  06:05 PM            28,087 wlbs_rc.dll
             188 File(s)     19,090,155 bytes
               2 Dir(s)  20,026,626,048 bytes free

ContextSwitches - 12543
First level fills = 0
Second level fills = 0

ETime( 0:00:00.450 ) UTime( 0:00:00.020 ) KTime( 0:00:00.010 ) ITime( 0:00:00.190 )

C:\Program Files\Windows Resource Kits\Tools>

Thanks Mark.

--

Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist

--

http://www.freelists.org/webpage/oracle-l Received on Fri Dec 01 2006 - 14:18:33 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US