System.Threading.Watch.Stop C# (CSharp) Method

Stop() public method

public Stop ( ) : void
return void
        public void Stop()
        {
        }

Usage Example

Esempio n. 1
0
        public void TryEnter(int milliSeconds, ref bool lockTaken)
        {
            //Thread.BeginCriticalRegion();

            Watch sw = Watch.StartNew();

            while (sw.ElapsedMilliseconds < milliSeconds)
            {
                TryEnter(ref lockTaken);
            }
            sw.Stop();
        }
All Usage Examples Of System.Threading.Watch::Stop