mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-25 14:24:35 +00:00
The Great Reformat; moving to google-java-style w/ 4 space indent and 120 column line wrap
This commit is contained in:
1 parent
c632cc6af9
commit
e0b7ea62a4
933 files changed
+95734
-108818
No files matched your search
@@ -1,26 +1,22 @@
|
||||
package mekanism.common.util;
|
||||
|
||||
public class DebugUtils
|
||||
{
|
||||
private static long prevNanoTime;
|
||||
|
||||
public static void startTracking()
|
||||
{
|
||||
prevNanoTime = System.nanoTime();
|
||||
}
|
||||
|
||||
public static long getTrackedNanos()
|
||||
{
|
||||
return System.nanoTime()-prevNanoTime;
|
||||
}
|
||||
|
||||
public static long getTrackedMicros()
|
||||
{
|
||||
return getTrackedNanos()/1000;
|
||||
}
|
||||
|
||||
public static long getTrackedMillis()
|
||||
{
|
||||
return getTrackedMicros()/1000;
|
||||
}
|
||||
public class DebugUtils {
|
||||
|
||||
private static long prevNanoTime;
|
||||
|
||||
public static void startTracking() {
|
||||
prevNanoTime = System.nanoTime();
|
||||
}
|
||||
|
||||
public static long getTrackedNanos() {
|
||||
return System.nanoTime() - prevNanoTime;
|
||||
}
|
||||
|
||||
public static long getTrackedMicros() {
|
||||
return getTrackedNanos() / 1000;
|
||||
}
|
||||
|
||||
public static long getTrackedMillis() {
|
||||
return getTrackedMicros() / 1000;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user