package com.bytedance.sdk.openadsdk.utils;

import android.os.SystemClock;
/* loaded from: classes2.dex */
public class zB {
    private long Sg;
    public long YFl;

    public boolean wN() {
        return this.Sg > 0;
    }

    private zB(boolean z) {
        if (z) {
            AlY();
        }
    }

    public static zB YFl() {
        return new zB(true);
    }

    public static zB Sg() {
        return new zB(false);
    }

    public long tN() {
        return SystemClock.elapsedRealtime() - this.Sg;
    }

    public long YFl(zB zBVar) {
        return Math.abs(zBVar.Sg - this.Sg);
    }

    public void AlY() {
        this.YFl = System.currentTimeMillis();
        this.Sg = SystemClock.elapsedRealtime();
    }

    public String toString() {
        return String.valueOf(this.YFl);
    }
}
