Exemple #1
0
        /// <summary>
        /// End the timed scope explicitly
        /// </summary>
        private void EndScope(IMachineInformation machineInformation)
        {
            if (Interlocked.CompareExchange(ref m_isScopeEnded, 1, 0) == 0)
            {
                EndTick = Stopwatch.GetTimestamp();

                PerfDiagnostics?.Stop();

                LogEnd(machineInformation);

                IsScopeActive = false;
            }
        }