2025-11-24 22:52:51 +03:00

16 lines
417 B
Java

/*
* Decompiled with CFR 0.152.
*/
package net.minecraft.util.profiling.jfr.stats;
import java.time.Duration;
import java.time.Instant;
import jdk.jfr.consumer.RecordedEvent;
public record TickTimeStat(Instant timestamp, Duration currentAverage) {
public static TickTimeStat from(RecordedEvent event) {
return new TickTimeStat(event.getStartTime(), event.getDuration("averageTickDuration"));
}
}