delta time is the time between frames the code is useful if you want to make a game that needs good timing or an animation that needs to sync with audio