Both functions using requestAnimationFrame() to increment a counter. The first one allowed to fire as fast as requestAnimationFrame() wants, the second throttled to only allow firing every half second.