Measuring bat script execution time

There are times when we need to measure the performance of a bat script. While CMD has been able to do it, it was really a hassle to do it as there are lots of variables to declare and etc.

Windows PowerShell is able to do it with just a single statement as shown below. The time spent on the execution can be seen in a glance.


Measure-Command { <bat file> }

Advertisements
This entry was posted in Uncategorized and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s