Skip to content

Instantly share code, notes, and snippets.

@DataSolveProblems
Created May 21, 2019 13:24
Show Gist options
  • Save DataSolveProblems/0b24192a084cdd9d6d8e9b580d1a8a42 to your computer and use it in GitHub Desktop.
Save DataSolveProblems/0b24192a084cdd9d6d8e9b580d1a8a42 to your computer and use it in GitHub Desktop.
Sub Time_My_Macro()
Dim TimeStart As Double, TimeStop As Double, TotalTime As Double
Dim iCounter As Long
TimeStart = Timer
For iCounter = 1 To 50000000
'Pass
Next iCounter
TimeStop = Timer
TotalTime = Round(TimeStop - TimeStart, 2)
MsgBox TotalTime
End Sub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment