Timekeeper
Timekeeper is a straightforward and user-friendly datapack for tick profiling in Minecraft: Java Edition version 1.19 and above. This tool allows you to measure milliseconds per tick (MSPT) in your world or server.
How to Use
Getting started with Timekeeper is very simple. Enter the command /scoreboard players set $enabled timekeeper.var <specify number>, where instead of <specify number> you substitute the desired number of ticks for analysis. The datapack will automatically track MSPT during the specified period, and upon completion, it will display the average value in chat (for example: "Average MSPT over 50 ticks: 5").
Continuous Monitoring
If you need constant performance monitoring without time limitations, use the command /scoreboard players set $enabled timekeeper.var -1. In this case, the bossbar will remain displayed continuously, and the final average value will not be output to chat.
That's all there is to it! Nothing extra - just an efficient tool for analyzing your Minecraft performance.