Пример #1
0
 public void Stop()
 {
     btn_Start.Text = "启动";
     isRun          = false;
     ssl.Stop();
     fps              = 0;
     fpsPre           = 0;
     lab_FPS.Text     = "";
     lab_Percent.Text = "";
 }
Пример #2
0
        public static void DXCaptureScreenTest()
        {
            List <double> lista = new List <double>();

            var screenStateLogger = new ScreenStateLogger();

            screenStateLogger.ScreenRefreshed += (sender, data) =>
            {
            };
            screenStateLogger.Start();
            Thread.Sleep(1000);
            screenStateLogger.Stop();

            //for(int i=0; i < 10; i++)
            //{
            //    Console.WriteLine(lista[i]);
            //}

            //TimeSpan timeToScreenCapture = sw.Elapsed;

            //Console.WriteLine("Screen: {0}ms", timeToScreenCapture.TotalMilliseconds);

            Console.ReadLine();
        }