Robert Cain keeps track of time:
I’m still working on my documentation for my ArcaneBooks project, but wanted to have something for you to read this week, so decided to show you how to create an elapsed timer in PowerShell.
It can be helpful to determine how long a process runs in PowerShell. You can use it to determine what parts of code may need to be optimized, or gather metrics around your functions.
This is the same stopwatch operation which is available in .NET generally, so if you’re using C# or F#, it’s the same basic process.