def total_seconds(delta):
    """Return the total seconds of datetime.timedelta object.

    :param timedelta delta: a delta to convert
    :returns:   seconds
    :rtype:     int
    """
    return delta.total_seconds()
