Skip to Content
Menu
This question has been flagged
1 Reply
1958 Views

 I am posting messages during the execution, but want to show the complete duration.

Avatar
Discard
Best Answer

Add this to the start of your action:

start_time = datetime.datetime.now()


Add this to the end:

end_time = datetime.datetime.now()
record.message_post("This action took %d seconds!" % (end_time - start_time).seconds)
Avatar
Discard