Clock methods using requestAnimationFrame