1.用C#取出域名
string url = "http://zhidao.baidu.com/question/57172275.html";
string domain = Regex.Match(url, @"(?<=://)[a-zA-Z\.0-9]+(?=\/)").Value.ToString();
2.用C#计算程序执行的时间
Stopwatch sw = new Stopwatch();
sw.Start();
//要执行的代码
sw.Stop();
long timeTotal = sw.ElapsedMilliseconds;//毫秒