mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-25 00:22:50 -06:00
26 lines
729 B
Java
26 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();
|
||
|
}
|
||
|
}
|