every
add a function that is called every nanos nanoseconds.
Note that the requested time is not guaranteed to be accurate, especially on small values (less than 5ms). It will be executed at the end of the next frame. The executor will overshoot much more often that it will undershoot.
From testing, a requested time of 1 second is about 99.3% accurate. (+7ms, -0.01ms)