Rabbit-R1/original r1/java/sources/androidx/media3/common/util/SystemClock.java
2024-05-21 17:08:36 -04:00

36 lines
1 KiB
Java

package androidx.media3.common.util;
import android.os.Handler;
import android.os.Looper;
/* loaded from: classes2.dex */
public class SystemClock implements Clock {
@Override // androidx.media3.common.util.Clock
public void onThreadBlocked() {
}
@Override // androidx.media3.common.util.Clock
public long currentTimeMillis() {
return System.currentTimeMillis();
}
@Override // androidx.media3.common.util.Clock
public long elapsedRealtime() {
return android.os.SystemClock.elapsedRealtime();
}
@Override // androidx.media3.common.util.Clock
public long uptimeMillis() {
return android.os.SystemClock.uptimeMillis();
}
@Override // androidx.media3.common.util.Clock
public long nanoTime() {
return System.nanoTime();
}
@Override // androidx.media3.common.util.Clock
public HandlerWrapper createHandler(Looper looper, Handler.Callback callback) {
return new SystemHandlerWrapper(new Handler(looper, callback));
}
}