Using Stopwatch and ContinueWith to Measure Task Execution Time in C#

added by DotNetKicks
12/4/2018 5:22:05 PM


Lately, as part of the major refactoring I've been writing about, my team and I have decided to introduce asynchronous programming to a project we've been trying to improve. For the most part, that work has been useful and relatively easy, but lately we've been running into an issue where several asynchronous tasks are seeming to take longer than they should.