withMinTime - sleep if code executed shorter than x milliseconds