36 lines
1.3 KiB
Java
36 lines
1.3 KiB
Java
package com.discord.utilities.time;
|
|
|
|
import d0.g;
|
|
import d0.z.d.m;
|
|
import kotlin.Lazy;
|
|
import kotlin.jvm.internal.DefaultConstructorMarker;
|
|
/* compiled from: TimeElapsed.kt */
|
|
public final class TimeElapsed {
|
|
private final Lazy milliseconds$delegate;
|
|
private final Lazy seconds$delegate;
|
|
private final long startTime;
|
|
|
|
public TimeElapsed(Clock clock, long j) {
|
|
m.checkNotNullParameter(clock, "clock");
|
|
this.startTime = j;
|
|
this.milliseconds$delegate = g.lazy(new TimeElapsed$milliseconds$2(this, clock));
|
|
this.seconds$delegate = g.lazy(new TimeElapsed$seconds$2(this));
|
|
}
|
|
|
|
/* JADX INFO: this call moved to the top of the method (can break code semantics) */
|
|
public /* synthetic */ TimeElapsed(Clock clock, long j, int i, DefaultConstructorMarker defaultConstructorMarker) {
|
|
this(clock, (i & 2) != 0 ? clock.currentTimeMillis() : j);
|
|
}
|
|
|
|
public static final /* synthetic */ long access$getStartTime$p(TimeElapsed timeElapsed) {
|
|
return timeElapsed.startTime;
|
|
}
|
|
|
|
public final long getMilliseconds() {
|
|
return ((Number) this.milliseconds$delegate.getValue()).longValue();
|
|
}
|
|
|
|
public final float getSeconds() {
|
|
return ((Number) this.seconds$delegate.getValue()).floatValue();
|
|
}
|
|
}
|