<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def on_finish(self):
 """ Called regardless of success or failure """

        r = self.response
        r.request_time = time.time() - self.start_time
        if self.callback:
            self.callback(r)