Advertisement
ronAmit

Untitled

Dec 13th, 2020
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. print('Message \n' + str(msg))
  2. with open(Path('Data') / 'Switching_Boxes.log', "w") as log_file:
  3. time_str = time.strftime("%H hours, %M minutes and %S seconds", time.gmtime(timeit.default_timer() - start_time))
  4. log_file.write('Finished in ' + time_str)
  5. log_file.write('Message \n' + str(msg))
  6.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement