This is to do with the youtube api and getting the current time.
var currenttime = ytplayer.getCurrentTime();
document.getElementById('currenttime').innerHTML = currenttime;
<p id="currenttime"></p>
How would I make it keep updating the current time so that you can see the time going up on the screen while the video is playing?