If it is just for the display, this idea works :
avgString = str(avg).split(".")[0]
The idea is to take only what is before the point.
It will return 01:23:45 for 01:23:45.1235
If it is just for the display, this idea works :
avgString = str(avg).split(".")[0]
The idea is to take only what is before the point.
It will return 01:23:45 for 01:23:45.1235