Timekeeper is a simple and easy-to-use tick profiler data pack for Minecraft: Java Edition 1.19+. It measures the milliseconds per tick (MSPT) of the world/server you run it on.
Using it is very simple. Just type in
/scoreboard players set $enabled timekeeper.var <insert number here>, and the datapack will keep track of the MSPT for however many ticks you specify. Once the time is done, it will print the average MSPT over the period to chat. (e.g. "Average MSPT over 50 ticks: 5")
If you want to continue profiling the tick rate indefinitely, you can use
/scoreboard players set $enabled timekeeper.var -1, which will keep the bossbar up until told otherwise and thus will not print out a final average.
And that's all there is to it!
How to Install Timekeeper (Datapack)
Timekeeper by Nico314159 is verified for Datapack, Fabric, Forge, Neoforge, Quilt across Minecraft versions 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.21, 1.21.1 (latest release: 1.02+mod, file size: 26 KB). Follow the steps below to install it safely from ModCraft.tv:
- Click the Download button above and select your Minecraft version (1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.3, 1.20.4, 1.21, 1.21.1) and platform (Datapack, Fabric, Forge, Neoforge, Quilt).
- Make sure you have the compatible loader or environment installed for Datapack, Fabric, Forge, Neoforge, Quilt.
- Move the downloaded Timekeeper file into your Minecraft
.minecraft/saves/<world>/datapacksfolder and launch the game.