Get python unit test duration in seconds
You could record start time in the setup function and then print elapsed time in cleanup.
UPDATED, thanks to @Centralniak's comment.
How about simple
from datetime import datetime
tick = datetime.now()
# run the tests here
tock = datetime.now()
diff = tock - tick # the result is a datetime.timedelta object
print(diff.total_seconds())