Created
May 21, 2019 13:24
-
-
Save DataSolveProblems/0b24192a084cdd9d6d8e9b580d1a8a42 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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