Uses of Class
net.obvj.performetrics.util.Duration
-
Packages that use Duration Package Description net.obvj.performetrics Provides convenient classes for extracting performance metrics of Java code.net.obvj.performetrics.util Provides utility classes in general. -
-
Uses of Duration in net.obvj.performetrics
Methods in net.obvj.performetrics that return Duration Modifier and Type Method Description DurationCounter. elapsedTime()Returns the elapsed time.DurationTimingSession. elapsedTime(Counter.Type type)A convenient method that returns the elapsed time of a specific counter.DurationTimingSessionContainer. elapsedTime()Returns the total elapsed time for a single counter type, provided that this object is keeping a single type.DurationTimingSessionContainer. elapsedTime(Counter.Type type)Returns the total elapsed time for a specific counter type.DurationUnmodifiableCounter. elapsedTime()DurationUnmodifiableTimingSession. elapsedTime(Counter.Type type) -
Uses of Duration in net.obvj.performetrics.util
Fields in net.obvj.performetrics.util declared as Duration Modifier and Type Field Description static DurationDuration. ZEROConstant for a duration of zero.Methods in net.obvj.performetrics.util that return Duration Modifier and Type Method Description static DurationDurationUtils. average(Collection<Duration> durations)Computes and returns the mean Duration of the given collection of Durations.DurationDuration. dividedBy(long divisor)Returns a copy of this duration divided by the specified value.static DurationDurationUtils. max(Collection<Duration> durations)Returns the highest/maximum Duration of a given collection.static DurationDurationUtils. min(Collection<Duration> durations)Returns the lowest/minimum Duration of a given collection.static DurationDuration. of(long amount, TemporalUnit temporalUnit)Obtains aDurationrepresenting an amount in the specified unit.static DurationDuration. of(long amount, TimeUnit timeUnit)Obtains aDurationrepresenting an amount in the specified time unit.static DurationDuration. parse(String string)Obtains aDurationfrom a string in default format.static DurationDuration. parse(String string, DurationFormat format)Obtains aDurationfrom a string in a specificDurationFormat.DurationDurationFormat. parse(String string)Parses a textual representation of aDuration.DurationDuration. plus(long amount, TimeUnit timeUnit)Returns a copy of this duration with the specified duration added.DurationDuration. plus(Duration duration)Returns a copy of this duration with the specified duration added.static DurationDuration. sum(Duration duration1, Duration duration2)Returns the sum of two durations.Methods in net.obvj.performetrics.util with parameters of type Duration Modifier and Type Method Description intDuration. compareTo(Duration otherDuration)Compares this duration to the specifiedDurationbased on the total length of the durations, as defined byComparable.StringDurationFormat. format(Duration duration, boolean printLegend)Formats a given duration.DurationDuration. plus(Duration duration)Returns a copy of this duration with the specified duration added.static DurationDuration. sum(Duration duration1, Duration duration2)Returns the sum of two durations.Method parameters in net.obvj.performetrics.util with type arguments of type Duration Modifier and Type Method Description static DurationDurationUtils. average(Collection<Duration> durations)Computes and returns the mean Duration of the given collection of Durations.static DurationDurationUtils. max(Collection<Duration> durations)Returns the highest/maximum Duration of a given collection.static DurationDurationUtils. min(Collection<Duration> durations)Returns the lowest/minimum Duration of a given collection.
-