In VB6 you had the ability to time how long something took to execute:
Dim dStart As Double
dStart = Timer
Dim c As String
Dim i As Long
For i = 0 To 1000000
c = "hi"
Next i
Dim dEnd As Double
dEnd = Timer
MsgBox "Process took: " & Round(((dEnd - dStart) * 1000), 0) & " milliseconds."
I'm looking for the VB .NET equivalent of this.
I also need millisecond resolution (or better).
Anyone know how to do this?
Dim dStart As Double
dStart = Timer
Dim c As String
Dim i As Long
For i = 0 To 1000000
c = "hi"
Next i
Dim dEnd As Double
dEnd = Timer
MsgBox "Process took: " & Round(((dEnd - dStart) * 1000), 0) & " milliseconds."
I'm looking for the VB .NET equivalent of this.
I also need millisecond resolution (or better).
Anyone know how to do this?