<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_train_end(self, logs):
 """ Print training time at end of training """

        duration = timeit.default_timer() - self.train_start
        print('done, took {:.3f} seconds'.format(duration))