VB.Net程序计算程序运行时间
发布时间:2020-12-16 22:20:12 所属栏目:大数据 来源:网络整理
导读:大家直接看代码,很简单,不知大家平时怎么测试的! Dim timer As New Stopwatch()timer.Start()Dim j As Integer = 1For i As Integer = 0 To 100000000j += 1Nexttimer.Stop()Me.Label1.Text = timer.Elapsed.ToString() + "显示秒:" + timer.ElapsedMill
大家直接看代码,很简单,不知大家平时怎么测试的! 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() (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |