Calculate deltaTime and pass to Update functions