Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print('Message \n' + str(msg))
- with open(Path('Data') / 'Switching_Boxes.log', "w") as log_file:
- time_str = time.strftime("%H hours, %M minutes and %S seconds", time.gmtime(timeit.default_timer() - start_time))
- log_file.write('Finished in ' + time_str)
- log_file.write('Message \n' + str(msg))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement