Package com.pervasivecode.utils.time
-
Interface Summary Interface Description CurrentNanosSource An object that provides the current time since the Unix epoch, with nanosecond precision.PeriodicRunner An object that can run a single Runnable task repeatedly at a steady rate.TimeSource An object that supplies values meant to represent the current wall-clock time.UnitSuffixProvider A provider of unit suffixes for formattingDuration
values of varying units. -
Class Summary Class Description DurationFormat This object holds configuration information for aDurationFormatter
instance.DurationFormat.Builder This object will build aDurationFormat
instance.DurationFormats Factory methods for DurationFormat instances.DurationFormatter Formatter for aDuration
value.SimplePeriodicRunner A simple implementation of aPeriodicRunner
using aScheduledExecutorService
.SimplePeriodicRunnerFactory Instances of this class will run a singleRunnable
task repeatedly at a rate specified in terms of an interval.UnitSuffixProviders Factory methods for UnitSuffixProvider instances that behave in ways that are appropriate for most locales. -
Enum Summary Enum Description DurationRemainderHandling Strategies for formattingDuration
s that have a remainder smaller than the smallest unit of time that will be shown.