Exemple #1
0
        public static void Slice()
        {
            Queue <TimerClass> queue = queue_0;

            lock (queue)
            {
                int_3 = queue_0.Count;
                int       num       = 0;
                Stopwatch stopwatch = null;
                while (num < int_2)
                {
                    if (queue_0.Count == 0)
                    {
                        break;
                    }
                    if (World.jlMsg == 1)
                    {
                        Form1.WriteLine(0, "Slice");
                    }
                    TimerClass   local1  = queue_0.Dequeue();
                    TimerProfile profile = local1.method_0();
                    if (profile != null)
                    {
                        if (stopwatch == null)
                        {
                            stopwatch = Stopwatch.StartNew();
                        }
                        else
                        {
                            stopwatch.Start();
                        }
                    }
                    local1.vmethod_1();
                    local1.bool_1 = false;
                    num++;
                    if (profile != null)
                    {
                        profile.method_3(stopwatch.Elapsed);
                        stopwatch.Reset();
                    }
                }
            }
        }