Advertisement
Luciano_fuentes

Untitled

Nov 20th, 2016
198
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Option Explicit
  2.  
  3. Dim tmr As ctiming
  4.  
  5.  
  6. Sub Test()
  7.  
  8. Set tmr = New ctiming
  9. Dim LoopC As Long
  10. Dim LoopX As Long
  11. Dim dArray() As Long
  12. Dim segs As String
  13. ReDim dArray(1 To 1000) As Long
  14. For LoopX = 1 To 1000
  15. dArray(LoopX) = LoopX + 50
  16. Next LoopX
  17. tmr.Reset
  18. For LoopC = 1 To 1000000
  19. ReDim Preserve dArray(1 To 10000) As Long
  20. Next LoopC
  21. segs = tmr.sElapsed
  22. Text1.Text = segs
  23.  
  24. End Sub
  25.  
  26. Private Sub Command1_Click()
  27. Call Test
  28. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement