Optimal way of making timed code

Who knows?

How fast does it need to step? How accurate does the path need to be? Does it have a path? Is it a Cartesian robot?