Calculate runtime limit in milliseconds instead of ticks.