[英]Is there a place that I could look at the .NET Stopwatch code and see what it's doing?
Is there a place that I could look at the .NET Stopwatch code and see what it's doing? 我可以在某个地方查看.NET秒表代码,看看它在做什么吗? I'm trying to match up some C++ code to normalize timestamp that .NET stopwatch provides with QueryPerformance call in C++.
我试图匹配一些C ++代码以标准化.NET秒表通过C ++中的QueryPerformance调用提供的时间戳。 (I need to have really good precision if possible, so I need to understand what's actually going on in the .NET Stopwatch calls).
(如果可能,我必须具有非常好的精度,因此我需要了解.NET Stopwatch调用中的实际情况)。
Is the code visible / open somewhere that I can read it online. 该代码是否可见/在我可以在线阅读的地方打开。 Is decompiling mscorlib an option?
可以反编译mscorlib吗? I'm kind of keeping this as a last resort.
我有点把它作为最后的手段。
Here's what .NET 3.5 does 这是.NET 3.5的功能
http://reflector.webtropy.com/default.aspx/Dotnetfx_Win7_3@5@1/Dotnetfx_Win7_3@5@1/3@5@1/DEVDIV/depot/DevDiv/releases/whidbey/NetFXspW7/ndp/fx/src/Services/Monitoring/system/Diagnosticts/Stopwatch@cs/1/Stopwatch@cs http://reflector.webtropy.com/default.aspx/Dotnetfx_Win7_3@5@1/Dotnetfx_Win7_3@5@1/3@5@1/DEVDIV/depot/DevDiv/releases/whidbey/NetFXspW7/ndp/fx/src/服务/监控/系统/诊断程序/ Stopwatch @ cs / 1 / Stopwatch @ cs
The date on the source code is late 2002, so probably most versions of .NET use the same code. 源代码上的日期为2002年末,因此大多数.NET版本可能使用相同的代码。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.