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

Hello
Post your sketch well formated and in code "</>" tags as been shown in this editor to see how we can help.
Your sketch needs two timer to do this job at least.