Visual Studio 2008 - 获取断点之间的时间间隔? [英] Visual Studio 2008 - Get time interval between break points?

查看:669
本文介绍了Visual Studio 2008 - 获取断点之间的时间间隔?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有人知道你是否可以得到VS 2008中断点之间的时间间隔?插件?VS技巧?



我不想添加代码到我现有的源代码,以确定需要多长时间运行,我想要一个快速,调试时弄脏的方法。对于你聪明的屁股,我知道我总是可以鞭打一个秒表,但我想要一些有点精确的东西。

解决方案

您可以使用Tracepoint,当点击时,会将您输入的内容输出到控制台窗口:



alt文字http://img24.imageshack.us/img24/3866/51292677.png



然后你可以从前者中减去后者,以获得两者之间的时间。


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.

解决方案

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.

这篇关于Visual Studio 2008 - 获取断点之间的时间间隔?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆