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
|
暂时没有评论
发表评论 - 不要忘了输入验证码哦! |