Powershell如何计算命令的执行时间

2024-10-28 19:28:42

1、打开powershell程序窗口;

Powershell如何计算命令的执行时间

2、在powershell窗口中输入“Measure-Command”;

Powershell如何计算命令的执行时间

3、输入一个{};

Powershell如何计算命令的执行时间

4、在{}中输入需要执行的命令;

Powershell如何计算命令的执行时间

5、命令自动运行,并返回统计结果;

Powershell如何计算命令的执行时间

6、案例二:计算ls命筠沭鱿漆令的执行时间!在powershell窗口中输入“Measure-Command {ls}”;

Powershell如何计算命令的执行时间

7、点击回车后等待一会儿,程序自动返回计算结果。

Powershell如何计算命令的执行时间
猜你喜欢