added timestamp from window.requestAnimationFrame