Stopwatch

From Terraria Wiki
Jump to: navigation, search
Desktop versionConsole versionMobile version Desktop/Console/Mobile-Only Content: This information applies only to the Desktop, Console, and Mobile versions of Terraria.
Stopwatch
  • Stopwatch item sprite
Stack digit 1.png
Statistics
Type
TooltipDisplays how fast the player is moving
Rarity01*Rarity level: 1
Buy5
Sell1
Research1 required

The Stopwatch is an informational accessory that displays the player's current movement speed in miles per hour, e.g. "34 mph". It is purchased from the Traveling Merchant for 5.

Crafting[edit | edit source]

Used in[edit | edit source]

Notes[edit | edit source]

  • This content is transcluded from Informational Accessories/note.Desktop, Console, and Mobile versions Unlike most accessories, informational accessories such as the Stopwatch do not need to be equipped in an accessory slot. The Stopwatch may be carried in the player's inventory without loss of functionality, unless equipped to a social slot. Additionally, the info it provides will be shared with nearby players of the same team in multiplayer. Keep in mind modifiers will no longer apply to the player when not equipped, however.
  • The conversion factor between miles/hour and tiles/second in Terraria is 11/15 (0.7333...), and conversely, 15/11 (1.363636...) between tiles/second and miles/hour. For example, the Minecart's top speed is 66 mph, which is equal to 48.4 tiles/second.
    • This is taken from Terraria's source code, where the player's internal pixels-per-tick[1] velocity is multiplied by 216000/42240 (hard-coded) to get the miles-per-hour velocity for display.[2] The numerator of this fraction represents 1 hour in ticks: 60 ticks in a second[3] multiplied by 3600 seconds in an hour = 216000 ticks. The denominator represents 1 mile in pixels: 16 pixels in a tile multiplied by 1/2 tile in a foot multiplied by 5280 feet in a mile = 42240 pixels. Flipping the fraction gets the conversion factor between miles per hour and pixels per tick: 42240/216000. 1 pixel per tick is equal to 1/16 tiles (16 pixels in a tile) per 1/60 seconds (60 ticks in a second[3]), hence the conversion factor between miles per hour and tiles per second is (42240/16)/(216000/60) = 2640/3600 = 11/15.
  • When running or riding in a Minecart, the Stopwatch's display only represents horizontal speed. When midair (jumping, flying, etc.), the displayed value is the total velocity in any direction.
  • When moving horizontally along a Rope, the Stopwatch will display "0 mph" regardless of how fast the player is moving.

History[edit | edit source]

References[edit | edit source]

  1. A tick is a time unit countable by the software. Most of Terraria's updating logic happens every tick. A tick has the length of 1/60th of a second, hence there are 60 ticks in a second and 3600 ticks in a minute.
  2. Information taken from the Desktop version Desktop 1.4.0.5 source code, method DrawInfoAccs() in Terraria.Main.cs. There may be inaccuracies, as the current Desktop version Desktop version is 1.4.1.2.
  3. 3.0 3.1 1 tick = 1/60th of a second