2013-01-09 処理時間を計測する C# var sw = new Stopwatch(); sw.Start(); // 処理 sw.Stop();long millisec = sw.ElapsedMilliseconds; Console.WriteLine(millisec);