Print total rendering time after a long script of several image renders?
I think your question is a bit incomplete but usually the time module is used, then

import bpy , time

def yourFunction(self,context):

    start = time.time()
    ####your script
    ####
    ####
    stop = time.time()

    result = stop-start

    print("Your time is :"+"{:05.2f}".format(result)+" Seconds")


note "{:05.2f}".format(result) It is used to format the seconds by approximating the cent