花费在方法上的时间

编程入门 行业动态 更新时间:2024-10-08 20:28:47
本文介绍了花费在方法上的时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

全部好, 任何人都知道如何在运行时间的方法中花费时间。希望这个问题一定很有趣。但我想出了这个想法,在我的项目中实施。这样我就可以监控花费的时间。有没有人有任何想法?

HI all, Anyone know how to get Time Spent in a Method duing RUN TIME. hope this question must be funny. but i came up with this idea to implement in my project. so that i can monitor where exactly more time has been spent. does any one have any idea?

推荐答案

要添加CPallini建议的内容,还有.NET 秒表类 [ ^ ] whihc也可以让你测量它。 To add to what CPallini suggests, there is also the .NET Stopwatch class[^] whihc will let you measure it as well.

A profiler [ ^ ]知道。 另外, Google [ ^ ]帮助。 A profiler[^] knows. Also, Google[^] helps.

你好, 如果你想做一些非常酷的事情,你可以使用CLR注射。 非常感兴趣关于CP的文章: CLR注入:运行时方法替换 [ ^ ] 此处还可以找到更深入的解释: www.ntcore/Files/netint_injection.htm [ ^ ] Valery。 Hello, If you want to do something really cool, you could use CLR injection. There's a very interesting article about it on CP: CLR Injection: Runtime Method Replacer[^] And also a more in depth explanation can be found here: www.ntcore/Files/netint_injection.htm[^] Valery.

更多推荐

花费在方法上的时间

本文发布于:2023-11-23 06:42:38,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1620475.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:时间   方法

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!