def __init__(self, value, interval):
        if isinstance(interval, timedelta):
            interval = int(interval.microseconds/1000.0)

        self.value = value
        self.interval = interval
dataset/ETHPy150Open ReactiveX/RxPY/tests/test_observable/test_timeinterval.py/TimeInterval.__init__/original