Tech Blog

Debug Stopwatch and Performance monitoring

By: Chris Dunn on Tue Jun 12, 2018 (4 min read)

If you're into performance analysis you will want to know about .net's Stopwatch class in the System.Diagnostics namespace.  It's great for monitoring the execution time of an operation and identifying performance black holes in your code.  It's also more precise and performant than using repeated DateTime.Now calls (which we're all guilty of doing).  Understand that Stopwatch is not your only option and in certain cases PerformanceCounters may be a better solution. Here's the basic code to get ...

Copyright 2019 Cidean, LLC. All rights reserved.

Proudly running Umbraco 7. This site is responsive with the help of Foundation 5.