How to Use PowerShell to Create a timer or a stopwatch

I wanted to create a timer that I will be able to know how much time passed from a snippet of a code. I familiar with the Measure-Command:

But I wanted to know if there is another way I […]