You are not logged in.

#1 2007-10-04 16:39:02

jinn
Member
From: Gothenburg
Registered: 2005-12-10
Posts: 506

time running time of applications in windows??

How do I time the running time of applications in windows?? 

in linux its quite easy : time ./a.out

but how in windows??


The ultimate Archlinux release name: "I am your father"

Offline

#2 2007-10-04 20:46:06

MrWeatherbee
Member
Registered: 2007-08-01
Posts: 277

Re: time running time of applications in windows??

jinn wrote:

How do I time the running time of applications in windows?? 

in linux its quite easy : time ./a.out

but how in windows??

You can use TimeIt.exe from MS's Windows Server 2003 Resource Kit Tools:

http://www.microsoft.com/downloads/deta … layLang=en

The whole kit has to be downloaded (~ 12 MB), but you can extract the rktools.exe file and then extract the rktools.msi file contained therein to get at the individual tools without having to install everything if you desire.

From the extracted readme file:

Timeit.exe

TimeIt is a command-line tool that records the time a specified command takes to run.

File Required

    * Timeit.exe

TimeIt Syntax

timeit [-f FileName] [-a] [-c] [-i] [-d] [-s] [-t] [-k KeyName | -r KeyName] [-m Mask] [Command]

-f FileName
    Specifies the name of the database file where TimeIt keeps a history of previous timings. The default file name is .\Timeit.dat
-k KeyName
    Specifies the keyname to use for this timing run.
-r KeyName
    Specifies the key name to remove from the database. If the key name is followed by a comma and a number, the slowest time (positive number) or the fastest time (negative number) for that key name will be removed.
-a
    Specifies that TimeIt should display average of all timings for the specified key name.
-i
    Ignores nonzero return codes from the program run by TimeIt.
-d
    Shows detail for average.
-s
    Suppresses systemwide counters.
-t
    Specifies tabular output.
-c
    Forces a re-sort of the database.
-m Mask
    Specifies the processor affinity mask.
Command
    Specifies the command to time.

Note

TimeIt accepts only parameters preceded with a dash (-).

Though I believe TimeIt is a good choice based on your post, alternatively you could install Cygwin or use the various timer modules / classes / functions available in a variety of different programming languages depending on which one(s) you may use.

Offline

Board footer

Powered by FluxBB