Dim L As New List(Of String)
For i As Integer = 0 To 50000
L.Add(i.ToString)
Next
Dim sw As New Stopwatch
sw.Start()
Dim j = L.Find(Function(x) x = "4550")
sw.Stop()
MsgBox(j)
Dim Tsp As TimeSpan = sw.Elapsed
MsgBox("耗时:" & Tsp.TotalMilliseconds)
End Sub
|
|
暂时没有评论
| 发表评论 - 不要忘了输入验证码哦! |
用户登陆
站点日历
站点统计
最新评论
Stopwatch 计时 [ 日期:2021-04-09 ] [ 来自: