Class StopwatchParts

java.lang.Object
io.rocketbase.commons.util.StopwatchParts

public class StopwatchParts extends Object
improved stopwatch for time-tracking that supports parts to know which area of a run tooks how long
sample output could look like:
⏱ 4109 ms [29% syncValues: 1197 ms | 23% queryProduct: 953 ms | 21% colorMapping: 880 ms | 10% brainMap: 444 ms ...]
  • Method Details

    • start

      public static StopwatchParts start()
    • build

    • part

      public void part(String caption)
      if part is already existing it will get counted as total of part
    • print

      public String print()
      used to print all statistics as configured
    • details

      public Map<String,Long> details()
      internal timing details - unmodifiable map
    • totalMillis

      public Long totalMillis()
      current total millis