def METHOD_NAME(target):
    """
    Accept None or ∞ or datetime or numeric for target
    >>> Timer._accept(datetime.timedelta(seconds=30))
    30.0
    >>> Timer._accept(None)
    inf
    """
    if isinstance(target, datetime.timedelta):
        target = target.total_seconds()
    if target is None:
        # treat None as infinite target
        target = float('Inf')
    return target