Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2008 - Get time interval between break points?

Does anyone know if you can get the time interval between break points in VS 2008? Plugin?, VS trick?

I DON'T want to add code to my existing source code to figure out how long something takes to run, I would like a quick and dirty way to get this while debugging. For you smart asses out there I know I can always whip out a stopwatch too, but I want something that is somewhat precise as well.

like image 872
Crackerjack Avatar asked Nov 06 '09 21:11

Crackerjack


People also ask

How do I check the execution time in Visual Studio?

If milliseconds then in Visual Studio 2019 you can see the time between two breakpoints under Diagnostic Tools -> Events -> Duration (opens automatically in Debug mode, or use Ctrl + Alt + F2 ).

How do you go to the next breakpoint in Visual Studio?

You can press F5 while debugging to jump to next breakpoint and F10 to jump line by line.

How can I see value while debugging in Visual Studio?

Run and Debug view# To bring up the Run and Debug view, select the Run and Debug icon in the Activity Bar on the side of VS Code. You can also use the keyboard shortcut Ctrl+Shift+D.


1 Answers

You could use a Tracepoint - which, when hit, will output what you entered to the console window:

alt text http://img24.imageshack.us/img24/3866/51292677.png

Then you can subtract the latter from the former to get the time between the two.

like image 51
Philip Wallace Avatar answered Sep 22 '22 05:09

Philip Wallace