mirror of
https://gitlab.com/2009scape/rt4-client.git
synced 2025-12-20 21:40:30 -07:00
Rename Class209 to MonotonicClock
This commit is contained in:
parent
cb9188b076
commit
a7355ebbb3
18 changed files with 44 additions and 44 deletions
23
signlink/src/main/java/MonotonicClock.java
Normal file
23
signlink/src/main/java/MonotonicClock.java
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
import org.openrs2.deob.annotation.OriginalClass;
|
||||
import org.openrs2.deob.annotation.OriginalMember;
|
||||
import org.openrs2.deob.annotation.Pc;
|
||||
|
||||
@OriginalClass("signlink!ad")
|
||||
public final class MonotonicClock {
|
||||
|
||||
@OriginalMember(owner = "signlink!ad", name = "a", descriptor = "J")
|
||||
private static long aLong1312;
|
||||
|
||||
@OriginalMember(owner = "signlink!ad", name = "b", descriptor = "J")
|
||||
private static long aLong1313;
|
||||
|
||||
@OriginalMember(owner = "signlink!ad", name = "a", descriptor = "(B)J")
|
||||
public static synchronized long method5096() {
|
||||
@Pc(1) long local1 = System.currentTimeMillis();
|
||||
if (aLong1313 > local1) {
|
||||
aLong1312 += aLong1313 - local1;
|
||||
}
|
||||
aLong1313 = local1;
|
||||
return aLong1312 + local1;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue