Re: Timing program execution on Windows

Both work for me.

C:\>ver

Microsoft Windows XP [Version 5.1.2600]

C:\>ntimer sleep 2

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

ETime(   0:00:02.000 ) UTime(   0:00:00.015 ) KTime(   0:00:00.000 )
ITime(   0:00:04.031 )


C:\>timeit sleep 2

Version Number:   Windows NT 5.1 (Build 2600)
Exit Time:        2:06 pm, Friday, December 1 2006
Elapsed Time:     0:00:02.000
Process Time:     0:00:00.015
System Calls:     10518
Context Switches: 3961
Page Faults:      250
Bytes Read:       3360
Bytes Written:    786432
Bytes Other:      107672

C:\>

Alex.



On 12/1/06, Jared Still <jkstill@xxxxxxxxx> wrote:

On 12/1/06, Bobak, Mark <Mark.Bobak@xxxxxxxxxxxxxxx> wrote:
>
>  Jared,
>
> I have not tested or used it, but this looks like what you're looking
> for:
> http://malektips.com/xp_dos_0024.html
>
> -Mark
>


ntimer.exe would be ideal, as it reports user and kernel time, which
timethis.exe does not do.

Unfortunately, it does not work.

Tried it on Win2k, Win23k, XP, both from the 2000 and 2003 resource kits.

Doesn't work anywhere.


Jared Still
Certifiable Oracle DBA and Part Time Perl Evangelist

Other related posts: