VB.Net程序计算程序运行时间
来源:岁月联盟
时间:2012-10-09
大家直接看代码,很简单,不知大家平时怎么测试的!
[ruby]
Dim timer As New Stopwatch()
timer.Start()
Dim j As Integer = 1
For i As Integer = 0 To 100000000
j += 1
Next
timer.Stop()
Me.Label1.Text = timer.Elapsed.ToString() + "显示秒:" + timer.ElapsedMilliseconds.ToString()
下一篇:vb.net 枚举类型