Reactive time

Hookless » Adapters » Time

Reactive time as implemented in classes ReactiveInstant and ReactiveDuration is a reactive adapter for Java's Instant and Duration classes. Reactive time acts as a reactive data source that continuously changes. Hookless implementation of reactive time is smart enough to wake up reactive computation only when relevant time threshold is reached. This allows Hookless to provide reactive time with millisecond resolution (or better, depending on platform) with little overhead.

Download

Reactive time is included in core library.

Documentation

See com.machinezoo.hookless.time package in javadoc. Since the javadoc is not complete yet, you might want to take a look at comments and implementation in sources.