VB.NET How to time a section of code.

Once in a while I want to see how long a section of code takes to run and I always forget the best way to do this.

endTime.Subtract(startTime).TotalMilliseconds()

It's so simple it's easy to forget I guess.

No comments:

Post a Comment