| Package | Description |
|---|---|
| net.obvj.performetrics |
Provides convenient classes for extracting performance metrics of Java code.
|
| net.obvj.performetrics.monitors |
Provides classes that can monitor other ones.
|
| net.obvj.performetrics.util |
Provides utility classes in general.
|
| Modifier and Type | Method and Description |
|---|---|
Duration |
Counter.elapsedTime()
Returns the elapsed time.
|
Duration |
Stopwatch.elapsedTime()
Returns the total elapsed time for a single counter type, provided that this stopwatch
is keeping a single type.
|
Duration |
Stopwatch.elapsedTime(Counter.Type type)
Returns the total elapsed time for a specific counter.
|
Duration |
TimingSession.elapsedTime(Counter.Type type)
A convenient method that returns the elapsed time of a specific counter.
|
| Modifier and Type | Method and Description |
|---|---|
Duration |
MonitoredOperation.elapsedTime()
Returns the total elapsed time for a single counter type, provided that this monitor is
keeping a single type.
|
Duration |
MonitoredOperation.elapsedTime(Counter.Type type)
Returns the total elapsed time of a specific counter type.
|
| Modifier and Type | Field and Description |
|---|---|
static Duration |
Duration.ZERO
Constant for a duration of zero.
|
| Modifier and Type | Method and Description |
|---|---|
static Duration |
DurationUtils.average(Collection<Duration> durations)
Computes and returns the mean Duration of the given collection of Durations.
|
Duration |
Duration.dividedBy(long divisor)
Returns a copy of this duration divided by the specified value.
|
static Duration |
DurationUtils.max(Collection<Duration> durations)
Returns the highest/maximum Duration of a given collection.
|
static Duration |
DurationUtils.min(Collection<Duration> durations)
Returns the lowest/minimum Duration of a given collection.
|
static Duration |
Duration.of(long amount,
TimeUnit timeUnit)
Obtains a
Duration representing an amount in the specified time unit. |
Duration |
Duration.plus(Duration duration)
Returns a copy of this duration with the specified duration added.
|
Duration |
Duration.plus(long amount,
TimeUnit timeUnit)
Returns a copy of this duration with the specified duration added.
|
static Duration |
Duration.sum(Duration duration1,
Duration duration2)
Returns the sum of two durations.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Duration.compareTo(Duration otherDuration)
Compares this duration to the specified
Duration based on the total length of
the durations, as defined by Comparable. |
static String |
DurationFormatter.format(Duration duration)
Returns a string representation of the given
Duration using default format. |
abstract String |
DurationFormat.format(Duration duration,
boolean printLegend)
Formats a given duration.
|
static String |
DurationFormatter.format(Duration duration,
DurationFormat format)
Returns a string representation of the given
Duration with a specific format. |
static String |
DurationFormatter.format(Duration duration,
DurationFormat format,
boolean printLegend)
Returns a string representation of the given
Duration with a specific format. |
Duration |
Duration.plus(Duration duration)
Returns a copy of this duration with the specified duration added.
|
static Duration |
Duration.sum(Duration duration1,
Duration duration2)
Returns the sum of two durations.
|
| Modifier and Type | Method and Description |
|---|---|
static Duration |
DurationUtils.average(Collection<Duration> durations)
Computes and returns the mean Duration of the given collection of Durations.
|
static Duration |
DurationUtils.max(Collection<Duration> durations)
Returns the highest/maximum Duration of a given collection.
|
static Duration |
DurationUtils.min(Collection<Duration> durations)
Returns the lowest/minimum Duration of a given collection.
|
Copyright © 2022. All rights reserved.