Package io.rocketbase.commons.util
Class StopwatchParts
java.lang.Object
io.rocketbase.commons.util.StopwatchParts
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 ...]
sample output could look like:
⏱ 4109 ms [29% syncValues: 1197 ms | 23% queryProduct: 953 ms | 21% colorMapping: 880 ms | 10% brainMap: 444 ms ...]
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic class -
Method Summary
Modifier and TypeMethodDescriptionbuild()details()internal timing details - unmodifiable mapvoidif part is already existing it will get counted as total of partprint()used to print all statistics as configuredstatic StopwatchPartsstart()current total millis
-
Method Details
-
start
-
build
-
part
if part is already existing it will get counted as total of part -
print
used to print all statistics as configured -
details
internal timing details - unmodifiable map -
totalMillis
current total millis
-