Uploaded image for project: 'Minecraft: Java Edition'
  1. Minecraft: Java Edition
  2. MC-137162

Debug profiler results confuses miliseconds and nanoseconds

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Resolution: Fixed
    • Affects Version/s: Minecraft 1.13.1, Minecraft 1.13.2, Minecraft 18w43c
    • Fix Version/s: Minecraft 19w14a
    • Labels:
      None
    • Environment:
      Windows 10
    • Confirmation Status:
      Confirmed
    • Category:
      (Unassigned)

      Description

      When using /debug the game prints a message in chat and it also saves profiler results to a file. The "Time span" value in the file is supposedly measured in milliseconds and the value printed in chat is measured in seconds. You notice that the value in the file is 10e9 times larger than the one in chat. So it should write ns (nanoseconds) instead of ms (milliseconds).

      Example comparison:
      Profiler results (text file): Time span: 16968367420 ms
      Game chat: Stopped debug profiling after 16.97 seconds

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Misoloo Misode
            • Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                CHK: