Call setTimeout with a timeout similar to requestAnimationFrame