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.

Comments

Popular posts from this blog

ToMethodObject Refactoring

How to unlock a file in Team Foundation Server(TFS)

Microsoft.ApplicationBlocks. ExceptionManagement The event source x does not exist error