Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Commands/stopwatch: Difference between revisions

From SAS Gaming Wiki
imported>Ssysi
No edit summary
 
SyncBot (talk | contribs)
Remove broken links to missing pages
Line 32: Line 32:
{{Navbox commands}}
{{Navbox commands}}


[[Minecraft:de:Befehl/stopwatch]]
de:Befehl/stopwatch
[[Minecraft:ja:コマンド/stopwatch]]
ja:コマンド/stopwatch
[[Minecraft:pt:Comandos/stopwatch]]
pt:Comandos/stopwatch
[[Minecraft:zh:命令/stopwatch]]
zh:命令/stopwatch

Revision as of 15:45, 9 April 2026

Template:Exclusive Template:Stub Template:Infobox command

Allows manipulation of stopwatches to keep track of real time — the time measured is not affected by the game's tick rate (i.e. pausing, Template:Cmd, or even server lag).

The time is calculated with millisecond precision. Therefore:

  • When displayed, it is presented in seconds with 3 decimal places (e.g. 43.961s).
  • While any integer value can be used as the scale argument, a scale with absolute value >1000 is not useful to extract additional precision in the integer return value.

Syntax

  • Java Edition
stopwatch create <id> - Creates a stopwatch, which immediately begins running
stopwatch query <id> <scale> - Gets the value of the stopwatch, the amount of time since it was created/restarted. scale does not affect the displayed value in chat, but does affect the value returned e.g. for Template:Cmd. If the return value would exceed 32-bit signed integer limits (<-2147483648 or >2147483647), it is clamped.
stopwatch restart <id> - Restarts a stopwatch
stopwatch remove <id> - Removes a stopwatch

History

Template:HistoryTable

Navigation

Template:Navbox commands

de:Befehl/stopwatch ja:コマンド/stopwatch pt:Comandos/stopwatch zh:命令/stopwatch