using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Diagnostics;
using System.Threading;


namespace WindowsFormsApplication7
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            Stopwatch st1=new Stopwatch();
            st1.Start();
            for (int x=0;x<9999 ;x++ )
            {
                for (int y=0; y<9999 ;y++ )
                {
                    long z = x * y;
                }
            }
            st1.Stop();

            label1.Text = String.Format("Time Elapsed={0} msec", st1.Elapsed);

        }
    }
}

댓글

이 블로그의 인기 게시물

파이썬으로 Homomorphic Filtering 하기

파이썬으로 2D FFT/iFFT 하기: numpy 버전