Sub StopwatchTest() dim sw As Stopwatch Set sw = CreateStopwatch() sw.StartWatcher' code to time sw.StopWatcher Debug.Print sw.ElapsedTimeEnd Sub
Sub StopwatchTest()
dim sw As Stopwatch
Set sw = CreateStopwatch()
sw.StartWatcher
' code to time
sw.StopWatcher
Debug.Print sw.ElapsedTime
End Sub