def update(self, pbar):
        'Updates the widget to show the elapsed time.'

        return self.format % self.format_time(pbar.seconds_elapsed)
Updates the widget to show the elapsed time.
metadrive/render_pipeline/rplibs/progressbar/widgets.py