Returns an end message with elapsed time

def _endmsg(self, rd):
        """
        Returns an end message with elapsed time
        """
        msg = ""
        s = ""
        if rd.hours > 0:
            if rd.hours > 1:
                s = "s"
            msg += colors.bold(str(rd.hours)) + " hour" + s + " "
        s = ""
        if rd.minutes > 0:
            if rd.minutes > 1:
                s = "s"
            msg += colors.bold(str(rd.minutes)) + " minute" + s + " "
        # if rd.seconds > 0:
        #    msg+=str(rd.seconds)
        # else:
        #    msg+="0."
        milliseconds = int(rd.microseconds / 1000)
        if milliseconds > 0:
            msg += colors.bold(str(rd.seconds) + "." + str(milliseconds))
        msg += " seconds"
        return msg