DateTime Begin = DateTime.Now;
for(int i = 0 ; i< 1000000 ; i ++)
{
this.Label1.Text = i.ToString(); }
DateTime End = DateTime.Now;
TimeSpan t = End - Begin; this.Label1.Text = t.TotalMilliseconds.ToString();
用TimeSpan判断
for(int i = 0 ; i< 1000000 ; i ++)
{
this.Label1.Text = i.ToString(); }
DateTime End = DateTime.Now;
TimeSpan t = End - Begin; this.Label1.Text = t.TotalMilliseconds.ToString();
用TimeSpan判断
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货