Skip to content

Commit 70bbc65

Browse files
authored
Use System#currentTimeMillis() instead of nanoTime (#2)
Fixes #1
1 parent 9ef79ec commit 70bbc65

File tree

1 file changed

+3
-3
lines changed
  • src/main/java/net/minecraftforge/launcher

1 file changed

+3
-3
lines changed

src/main/java/net/minecraftforge/launcher/Main.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
import java.util.zip.ZipEntry;
2525
import java.util.zip.ZipFile;
2626

27-
public class Main {
27+
public final class Main {
2828
public static void main(String[] args) throws Throwable {
29-
long start = System.nanoTime();
29+
long start = System.currentTimeMillis();
3030
Launcher launcher;
3131
try {
3232
Log.capture();
@@ -36,7 +36,7 @@ public static void main(String[] args) throws Throwable {
3636
throw e;
3737
}
3838

39-
long total = (System.nanoTime() - start) / 1_000_000;
39+
long total = System.currentTimeMillis() - start;
4040
if (Log.isCapturing()) {
4141
Log.drop();
4242
Log.INFO.print("Slime Launcher setup is up-to-date");

0 commit comments

Comments
 (0)