【问题标题】:What is the best way or tool to show how long a command line operation takes?显示命令行操作需要多长时间的最佳方法或工具是什么?
【发布时间】:2009-08-19 10:52:19
【问题描述】:

我想知道一个命令需要多长时间才能运行。目前我正在这样做:

echo | time | find "current" & dowahdiddy.exe & echo | time | find "current"

这显示了之前和之后的时间:

The current time is: 11:39:14.38
...dowahdiddy output...
The current time is: 11:39:15.44

我必须确定差异。我可能会写一个简单的命令行执行器来显示一个 shell 操作需要多长时间,但我确信有很多方法可以做到这一点。

【问题讨论】:

    标签: windows command-line time


    【解决方案1】:

    试试TimeThis

    从微软下载页面...

    执行一次需要多长时间的时间 给定的命令。

    如果您已经安装了 Windows 资源工具包,那么您应该已经安装了此命令。即使下载页面显示“Windows 2000 资源工具包”,此命令也应该适用于更高版本的 Windows。

    【讨论】:

    • 谢谢,现在我可以看到我的 TFS 结帐速度有多慢了。残废,但准确。 :)
    猜你喜欢
    • 1970-01-01
    • 2010-09-06
    • 2011-01-18
    • 2010-09-28
    • 2013-06-17
    • 2012-01-17
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多