/stopwatch Command in Minecraft Java Edition

Manage and Query Stopwatches in Minecraft

Java EditionDebug & DeveloperPermission: Level 2Added in 1.21.11

The /stopwatch command lets operators create, check, restart, and delete custom stopwatches in Minecraft Java Edition. Each stopwatch is tracked using its own unique resource ID.

Players and mapmakers use this command when they want to track time intervals or manage multiple timers during gameplay. You must have level 2 operator permissions or have cheats turned on in single-player to run it.

Syntax (Java 26.3, 4 forms)

  1. /stopwatch create <id>
  2. /stopwatch query <id> [<scale>]
  3. /stopwatch remove <id>
  4. /stopwatch restart <id>

The forms you will use most

/stopwatch create <id>
Creates a new stopwatch using the specified resource ID.
/stopwatch query <id> [<scale>]
Checks the current value of a stopwatch, with an optional decimal scale.
/stopwatch remove <id>
Deletes an existing stopwatch that matches the given resource ID.
/stopwatch restart <id>
Restarts the specified stopwatch back from the beginning.

Arguments

ArgumentTypeWhat it means
<id>resource IDA namespaced resource ID used to name and identify the stopwatch, such as minecraft:stone.
<scale>decimal numberAn optional decimal number, such as 1.25, used when querying a stopwatch.

Examples

Version history

Measured from the game files of every Java release from 1.13 to 26.3.

  1. 1.21.11 Command added.

Tips

Common mistakes

Java vs Bedrock

The /stopwatch command is only available in Minecraft Java Edition. Bedrock Edition does not have a command with this name.

FAQ

What permission level do I need to use /stopwatch?

You need permission level 2, which means you must be a server operator or have cheats enabled in your single-player world.

How do I delete a stopwatch I no longer need?

Run /stopwatch remove <id> with the exact resource ID of the stopwatch you want to delete.

Can I use the /stopwatch command in Minecraft Bedrock Edition?

No, Bedrock Edition does not have a /stopwatch command.

Related commands

/compute/debug/help/jfr/perf/test/tick/version