-----------------------------------
TIMETHIS : Command Timing Utility
-----------------------------------
Usage : TIMETHIS "command"
TimeThis executes the command specified by its arguments, then reports its
run time in HH:MM:SS.TTT format. Quotes around the command are required only
when the command involves redirection via <, >, >>, or |, etc. Quotes ensure
that the redirection is applied to the command being timed, rather than the
TimeThis command itself.
Examples :
TimeThis DIR C:\WINNT
TimeThis "DIR C:\WINNT | MORE"
Usage: TIMEIT [-f filename] [-a] [-c] [-i] [-d] [-s] [-t] [-k keyname | -r keyna
me] [-m mask] [commandline...]
where: -f specifies the name of the database file where TIMEIT
keeps a history of previous timings. Default is .\timeit.dat
-k specifies the keyname to use for this timing run
-r specifies the keyname to remove from the database. If
keyname is followed by a comma and a number then it will
remove the slowest (positive number) or fastest (negative)
times for that keyname.
-a specifies that timeit should display average of all timings
for the specified key.
-i specifies to ignore non-zero return codes from program
-d specifies to show detail for average
-s specifies to suppress system wide counters
-t specifies to tabular output
-c specifies to force a resort of the data base
-m specifies the processor affinity mask
e:\我的文档\桌面>timethis sren -n "s/p/[p]/g" *.pl TimeThis : Command Line : sren -n s/p/[p]/g *.pl TimeThis : Start Time : Fri Jul 29 11:05:41 2011 "r.pl" -> "r.[p]l" "pren.pl" -> "[p]ren.[p]l" "rrr.pl" -> "rrr.[p]l" TimeThis : Command Line : sren -n s/p/[p]/g *.pl TimeThis : Start Time : Fri Jul 29 11:05:41 2011 TimeThis : End Time : Fri Jul 29 11:05:41 2011 TimeThis : Elapsed Time : 00:00:00.312 e:\我的文档\桌面>timethis "dir /b *.pl | pren -n s/p/[p]/g" TimeThis : Command Line : dir /b *.pl | pren -n s/p/[p]/g TimeThis : Start Time : Fri Jul 29 11:06:13 2011 reading filenames from STDIN r.pl renamed as r.[p]l pren.pl renamed as [p]ren.[p]l rrr.pl renamed as rrr.[p]l TimeThis : Command Line : dir /b *.pl | pren -n s/p/[p]/g TimeThis : Start Time : Fri Jul 29 11:06:13 2011 TimeThis : End Time : Fri Jul 29 11:06:14 2011 TimeThis : Elapsed Time : 00:00:00.500 |
e:\我的文档\桌面>timeit cmd /c "dir /b *.pl | pren.exe -n s/p/[p]/g" reading filenames from STDIN r.pl renamed as r.[p]l pren.pl renamed as [p]ren.[p]l rrr.pl renamed as rrr.[p]l Version Number: Windows NT 5.1 (Build 2600) Exit Time: 11:57 am, Friday, July 29 2011 Elapsed Time: 0:00:00.375 Process Time: 0:00:00.062 System Calls: 7225 Context Switches: 626 Page Faults: 2659 Bytes Read: 187558 Bytes Written: 23 Bytes Other: 8114 e:\我的文档\桌面>timeit cmd /c sren.bat -n s/p/[p]/g *.pl "r.pl" -> "r.[p]l" "pren.pl" -> "[p]ren.[p]l" "rrr.pl" -> "rrr.[p]l" Version Number: Windows NT 5.1 (Build 2600) Exit Time: 11:57 am, Friday, July 29 2011 Elapsed Time: 0:00:00.281 Process Time: 0:00:00.046 System Calls: 9698 Context Switches: 747 Page Faults: 2742 Bytes Read: 186954 Bytes Written: 71 Bytes Other: 12572 |
e:\我的文档\桌面\test>timeit Average for sren key over 8 runs Version Number: Windows NT 5.1 (Build 2600) Exit Time: 8:00 am, Monday, January 1 1601 Elapsed Time: 0:00:00.289 Process Time: 0:00:00.089 System Calls: 10490 Context Switches: 1053 Page Faults: 2732 Bytes Read: 73880 Bytes Written: 602 Bytes Other: 15897 |
e:\我的文档\桌面\test>timeit -t Runs Name Elapsed Time Process Time System Context Page Total I/O Calls Switches Faults 8 pren 0:00:00.388 0:00:00.085 8145 632 2768 198327 8 sren 0:00:00.281 0:00:00.091 10573 894 2860 90262 |
欢迎光临 批处理之家 (http://bbs.bathome.net/) | Powered by Discuz! 7.2 |