A microcontroller runs at a fixed speed, usually a few MHz. Insructions like the one you mentioned above take a long time to get executed since they involve many steps. Each step itself involves many clock cylces and each clock cycle has a fixed time duration. Hence, it is possilbe that such steps may cause a time delay of arnd 1 ms. This technique is commonly used where you want a time delay but dont want to / cannot use libraries like delay.h
A microcontroller runs at a fixed speed, usually a few MHz. Insructions like the one you mentioned above take a long time to get executed since they involve many steps. Each step itself involves many clock cylces and each clock cycle has a fixed time duration. Hence, it is possilbe that such steps may cause a time delay of arnd 1 ms. This technique is commonly used where you want a time delay but dont want to / cannot use libraries like delay.h