[转]提供一个获取高精度时间类
摘要:如果你觉得用 DotNet 自带的 DateTime 获取的时间精度不够,解决的方法是通过调用 QueryPerformanceFrequency 和 QueryPerformanceCounter这两个API来实现。 /// /// 获取时间的精度 /// /// /// [SuppressUnmanagedCodeSecurity] [DllImport("kernel32")] stat...
阅读全文
posted @ 2008-07-07 10:13