Stopwatch .java
net.minecraft.world.Stopwatch (record, 17 lines): members: creationTime, accumulatedElapsedTime, elapsedMilliseconds, elapsedSeconds.
File
API Surface (3)
record Stopwatch(long creationTime, long accumulatedElapsedTime)long elapsedMilliseconds(final long currentTime)double elapsedSeconds(final long currentTime)Same Package (24)
Full Source
| 1 | |
| 2 | |
| 3 | |
| 4 | |
| 5 | |
| 6 | |
| 7 | |
| 8 | |
| 9 | |
| 10 | |
| 11 | |
| 12 | |
| 13 | |
| 14 | |
| 15 | |
| 16 | |
| 17 | |
Decompiled Minecraft 26.3 source of Stopwatch (net/minecraft/world/Stopwatch.java) with Mojang official mappings, stored verbatim on the site.