def Counter64(a, b, delta):
    """64bit counter aggregator with wrapping
    """
    if b < a:
        c = 18446744073709551615 - a
        return (c + b) / float(delta)

    return (b - a) / float(delta)
dataset/ETHPy150Open calston/tensor/tensor/aggregators.py/Counter64/original