Rabbit-R1/switch port/smali/smali_classes3/io/sentry/SentryInstantDate.smali
2024-05-21 17:08:36 -04:00

62 lines
1.3 KiB
Smali

.class public final Lio/sentry/SentryInstantDate;
.super Lio/sentry/SentryDate;
.source "SentryInstantDate.java"
# instance fields
.field private final date:Ljava/time/Instant;
# direct methods
.method public constructor <init>()V
.locals 1
.line 16
invoke-static {}, Ljava/time/Instant;->now()Ljava/time/Instant;
move-result-object v0
invoke-direct {p0, v0}, Lio/sentry/SentryInstantDate;-><init>(Ljava/time/Instant;)V
return-void
.end method
.method public constructor <init>(Ljava/time/Instant;)V
.locals 0
.line 19
invoke-direct {p0}, Lio/sentry/SentryDate;-><init>()V
iput-object p1, p0, Lio/sentry/SentryInstantDate;->date:Ljava/time/Instant;
return-void
.end method
# virtual methods
.method public nanoTimestamp()J
.locals 4
iget-object v0, p0, Lio/sentry/SentryInstantDate;->date:Ljava/time/Instant;
.line 26
invoke-virtual {v0}, Ljava/time/Instant;->getEpochSecond()J
move-result-wide v0
invoke-static {v0, v1}, Lio/sentry/DateUtils;->secondsToNanos(J)J
move-result-wide v0
iget-object p0, p0, Lio/sentry/SentryInstantDate;->date:Ljava/time/Instant;
invoke-virtual {p0}, Ljava/time/Instant;->getNano()I
move-result p0
int-to-long v2, p0
add-long/2addr v0, v2
return-wide v0
.end method