if more commands than those are processed per millisecond, a 1ms sleep will follow, to avoid other threads being stalled.