用于垃圾收集的标记和清扫阶段的GC暂停时间基于堆上的活动对象的数量。
The time spent in GC pauses for the mark and sweep phases of a garbage collection are based on the number of live objects on the heap.
最大的区别就在与System.Timers.Timer类是对Win32可等待定时对象的一个包装,并在工作者线程上产生一个时间片消失事件而不是在UI线程上产生一个时间标记事件。
The biggest difference is that System.Timers.Timer is a wrapper around Win32 waitable timer objects and raises an Elapsed event on a worker thread rather than a Tick event on the UI thread.
应用推荐