- Added realracing3-community.apk (71.57 MB) - Removed 32-bit support (armeabi-v7a) - Only includes arm64-v8a libraries - Decompiled source code included - Added README-community.md with analysis
42 lines
1.2 KiB
Java
42 lines
1.2 KiB
Java
package com.vungle.ads;
|
|
|
|
import com.vungle.ads.internal.protos.Sdk;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class TimeIntervalMetric extends DualValueMetric {
|
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
|
public TimeIntervalMetric(Sdk.SDKMetric.SDKMetricType metricType) {
|
|
super(metricType);
|
|
Intrinsics.checkNotNullParameter(metricType, "metricType");
|
|
}
|
|
|
|
public void markStart() {
|
|
setValueFirst(Long.valueOf(getCurrentTime()));
|
|
}
|
|
|
|
public void markEnd() {
|
|
setValueSecond(Long.valueOf(getCurrentTime()));
|
|
}
|
|
|
|
public final long calculateIntervalDuration() {
|
|
long currentTime = getCurrentTime();
|
|
Long valueSecond = getValueSecond();
|
|
long longValue = valueSecond != null ? valueSecond.longValue() : currentTime;
|
|
Long valueFirst = getValueFirst();
|
|
if (valueFirst != null) {
|
|
currentTime = valueFirst.longValue();
|
|
}
|
|
return longValue - currentTime;
|
|
}
|
|
|
|
private final long getCurrentTime() {
|
|
return System.currentTimeMillis();
|
|
}
|
|
|
|
@Override // com.vungle.ads.Metric
|
|
public long getValue() {
|
|
return calculateIntervalDuration();
|
|
}
|
|
}
|