AdvancedMultithreadingLab.MiscBenchmarks.TestSetEvent C# (CSharp) Метод

TestSetEvent() статический приватный Метод

static private TestSetEvent ( ) : void
Результат void
        static void TestSetEvent()
        {
            const int n = 1000000;

            Stopwatch stopwatch = Stopwatch.StartNew();
            int j = 0;
            for (int i = 0; i < n; i++)
            {
                manualResetEvent.Reset();
                manualResetEvent.Set();

            }
            stopwatch.Stop();

            WriteTime("Set Event", n*2, stopwatch.ElapsedTicks);
        }