minecraft-src/net/minecraft/util/profiling/ProfileResults.java
2025-07-04 01:41:11 +03:00

34 lines
656 B
Java

package net.minecraft.util.profiling;
import java.nio.file.Path;
import java.util.List;
public interface ProfileResults {
char PATH_SEPARATOR = '\u001e';
List<ResultField> getTimes(String sectionPath);
boolean saveResults(Path path);
long getStartTimeNano();
int getStartTimeTicks();
long getEndTimeNano();
int getEndTimeTicks();
default long getNanoDuration() {
return this.getEndTimeNano() - this.getStartTimeNano();
}
default int getTickDuration() {
return this.getEndTimeTicks() - this.getStartTimeTicks();
}
String getProfilerResults();
static String demanglePath(String path) {
return path.replace('\u001e', '.');
}
}