コード例 #1
0
        public void Dispose()
        {
#if DEBUG
            double time = timer.ElapsedTime();
            Debug.WriteLine("QuickTimer: [" + label + "] " + time + "ms");
#else
            // This is only here to prevent the compiler from warning that label isn't in use
            // The label is only present in release because if we completely empty this class
            // in release, a placeholder is generated by asmmeta, and that placeholder causes
            // asmmeta to vary between release and debug
            Debug.WriteLine("QuickTimer: [" + label + "] - no timing information");
#endif
        }
コード例 #2
0
        public void Dispose()
        {
            double time = timer.ElapsedTime();

            Trace.WriteLine("QuickTimer: [" + label + "] " + time + "ms");
        }