Package com.pervasivecode.utils.concurrent.timing
-
Interface Summary Interface Description ListenableTimer A timer that can be observed by a StateChangeListener, which can be invoked when the timer starts or stops (or both).ListenableTimer.StateChangeListener A listener that will be notified when the state of a ListenableTimer changes.MultistageStopwatch<T extends Enum<?>> This stopwatch manages multiple concurrent timers tracking each stage of a user-defined multi-stage operation, aggregating the resulting duration values.MultistageStopwatch.TimingSummary A summary of the timer activity for one stage of multistage operation.QueryableTimer A timer that can be asked about its current state.StoppableTimer A timer that can be stopped. -
Class Summary Class Description HistogramBasedStopwatch<T extends Enum<?>> This type of MultistageStopwatch populates a timingHistogram
for each type of operation with counts representing how long those operations took.SimpleActiveTimer SimpleMultistageStopwatch<T extends Enum<?>> This type of MultistageStopwatch keeps a total of elapsed time used by all timers for each type of operation, along with counts representing how long those operations took.SimpleTimingSummary A basic TimingSummary implememtation, with validation.SimpleTimingSummary.Builder This object will build aSimpleTimingSummary
instance.