Files
rr3-apk/smali_classes3/com/helpshift/util/HSTimer.smali
Daniel Elliott f3960ee359 Add Discord APKTool decompilation (Smali source for modding)
- Imported from https://github.com/supermegamestre/Project-Real-Resurrection-3
- APKTool decompilation (Smali bytecode) for modding and rebuilding APK
- Supports both 32-bit (armeabi-v7a) and 64-bit (arm64-v8a) architectures
- Includes full Smali source, resources, and native libraries
- Ready to rebuild APK after modifications with apktool b command
- Added comprehensive README-apktool.md with modding guide

This branch complements the JADX branches:
- Use JADX (main/discord-community) to UNDERSTAND code (readable Java)
- Use APKTool (this branch) to MODIFY and REBUILD APK (editable Smali)

Total: 44,417 files, 538.51 MB Smali source code
2026-02-18 16:13:44 -08:00

87 lines
1.8 KiB
Smali

.class public abstract Lcom/helpshift/util/HSTimer;
.super Ljava/lang/Object;
.source "SourceFile"
# static fields
.field public static final sourceTimer:Ljava/util/Map;
# direct methods
.method static constructor <clinit>()V
.locals 1
.line 8
new-instance v0, Ljava/util/HashMap;
invoke-direct {v0}, Ljava/util/HashMap;-><init>()V
sput-object v0, Lcom/helpshift/util/HSTimer;->sourceTimer:Ljava/util/Map;
return-void
.end method
.method public static endTimer(Ljava/lang/String;)J
.locals 6
.line 15
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v0
.line 16
invoke-static {p0}, Lcom/helpshift/util/Utils;->isEmpty(Ljava/lang/String;)Z
move-result v2
const-wide/16 v3, -0x1
if-eqz v2, :cond_0
return-wide v3
:cond_0
sget-object v2, Lcom/helpshift/util/HSTimer;->sourceTimer:Ljava/util/Map;
.line 19
invoke-interface {v2, p0}, Ljava/util/Map;->containsKey(Ljava/lang/Object;)Z
move-result v5
if-eqz v5, :cond_1
invoke-interface {v2, p0}, Ljava/util/Map;->remove(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object p0
check-cast p0, Ljava/lang/Long;
invoke-virtual {p0}, Ljava/lang/Long;->longValue()J
move-result-wide v2
sub-long v3, v0, v2
:cond_1
return-wide v3
.end method
.method public static setStartTime(Ljava/lang/String;)V
.locals 3
sget-object v0, Lcom/helpshift/util/HSTimer;->sourceTimer:Ljava/util/Map;
.line 11
invoke-static {}, Ljava/lang/System;->currentTimeMillis()J
move-result-wide v1
invoke-static {v1, v2}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
move-result-object v1
invoke-interface {v0, p0, v1}, Ljava/util/Map;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
return-void
.end method