Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Function Benchmark(ByVal Method As Action, Optional ByVal iterations As Integer = 1) As Long
- Dim t As Stopwatch = Stopwatch.StartNew
- For i = 1 To iterations : Method.Invoke : Next
- t.Stop()
- Return t.ElapsedMilliseconds
- End Function
Advertisement
Add Comment
Please, Sign In to add comment