mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-24 08:02:37 -06:00
25 lines
729 B
Java
25 lines
729 B
Java
package io.sentry;
|
|
|
|
import io.sentry.util.Platform;
|
|
|
|
/* loaded from: classes3.dex */
|
|
public final class SentryAutoDateProvider implements SentryDateProvider {
|
|
private final SentryDateProvider dateProvider;
|
|
|
|
public SentryAutoDateProvider() {
|
|
if (checkInstantAvailabilityAndPrecision()) {
|
|
this.dateProvider = new SentryInstantDateProvider();
|
|
} else {
|
|
this.dateProvider = new SentryNanotimeDateProvider();
|
|
}
|
|
}
|
|
|
|
@Override // io.sentry.SentryDateProvider
|
|
public SentryDate now() {
|
|
return this.dateProvider.now();
|
|
}
|
|
|
|
private static boolean checkInstantAvailabilityAndPrecision() {
|
|
return Platform.isJvm() && Platform.isJavaNinePlus();
|
|
}
|
|
}
|