I have a macro something like this (logic):

Sub test()

[code here] <- no loops here but it takes time to finish

End sub

I want to record the time elapsed while the code is executing in milliseconds and display it a cell. The time elapsed must be like that of a stopwatch displaying the running time. Is there way to do that? Thanks.