package o; import java.util.concurrent.TimeUnit; /* loaded from: classes6.dex */ public final class fXD extends fUX> { private TimeUnit b; private AbstractC13173fSu e; public fXD(InterfaceC13169fSq interfaceC13169fSq, TimeUnit timeUnit, AbstractC13173fSu abstractC13173fSu) { super(interfaceC13169fSq); this.e = abstractC13173fSu; this.b = timeUnit; } @Override // o.AbstractC13163fSk public final void subscribeActual(InterfaceC13174fSv> interfaceC13174fSv) { this.c.subscribe(new IeS(interfaceC13174fSv, this.b, this.e)); } /* loaded from: classes6.dex */ static final class IeS implements InterfaceC13174fSv, fSJ { private long a; private InterfaceC13174fSv> b; private fSJ c; private TimeUnit d; private AbstractC13173fSu e; IeS(InterfaceC13174fSv> interfaceC13174fSv, TimeUnit timeUnit, AbstractC13173fSu abstractC13173fSu) { this.b = interfaceC13174fSv; this.e = abstractC13173fSu; this.d = timeUnit; } @Override // o.InterfaceC13174fSv public final void onSubscribe(fSJ fsj) { if (EnumC13192fTf.d(this.c, fsj)) { this.c = fsj; this.a = AbstractC13173fSu.b(this.d); this.b.onSubscribe(this); } } @Override // o.fSJ public final void dispose() { this.c.dispose(); } @Override // o.fSJ public final boolean isDisposed() { return this.c.isDisposed(); } @Override // o.InterfaceC13174fSv public final void onNext(T t) { long b = AbstractC13173fSu.b(this.d); long j = this.a; this.a = b; this.b.onNext(new C13421fZx(t, b - j, this.d)); } @Override // o.InterfaceC13174fSv public final void onError(Throwable th) { this.b.onError(th); } @Override // o.InterfaceC13174fSv public final void onComplete() { this.b.onComplete(); } } }