// webget.cs using System; using System.Net; class WebGet { static void Main() { string url = "http://www.atmarkit.co.jp/fdotnet/index.html"; WebClient wc = new WebClient(); DateTime start = DateTime.Now; string html = wc.DownloadString(url); DateTime finish = DateTime.Now; Console.WriteLine(finish - start); // 出力例:00:00:14.3437500 } } // コンパイル方法:csc webget.cs