0.1.2
Bug fix:
Duration::multipliedBy()
could return an invalid Duration with negative nanos
New methods:
Instant::toDecimal()
returns a decimal timestamp such as123456789.123456
FixedClock::move()
allows to move the clock by a number of seconds and/or nanos
New clock implementation:
ScaleClock
makes the time move at a given pace
New feature:
- Methods such as
now()
now use the clock returned byDefaultClock
. By default, this clock is stillSystemClock
, but it can now be overridden in tests. DefaultClock offers thefreeze()
,travel()
andscale()
methods inspired by timecop.