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

EXACTLY. Or, maybe just calls to things like sleep(32);


And it is the case, where, because I did not source a "sleep" function for Arduino Due, the core runs warm, even though the amount of things to do is minimal.

Let's leave the conversation for matters that matter.