コード例 #1
0
        private void btntestThroughput_Click(object sender, RoutedEventArgs e)
        {
            Screen screen = (Screen)cmbxScreenList.SelectedItem;

            int size = 240000;

            Random rand = new Random();

            byte[]    data = (new byte[size]).Select(r => (byte)rand.Next(0, 256)).ToArray();
            Stopwatch sw   = new Stopwatch();

            sw.Start();
            Connector.Action8TestThroughput(screen, data);
            sw.Stop();

            MessageBox.Show("time : " + sw.ElapsedMilliseconds + "ms");
        }