What is the easiest way to run some code each millisecond for a certain amount of time?

Does the code take less than 1 ms to run?

Do you want to run this piece of code 120,000 times in 2 seconds minutes?