Skip to content

0.1.2

Compare
Choose a tag to compare
@BenMorel BenMorel released this 04 Oct 15:15
· 306 commits to master since this release

Bug fix:

  • Duration::multipliedBy() could return an invalid Duration with negative nanos

New methods:

  • Instant::toDecimal() returns a decimal timestamp such as 123456789.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 by DefaultClock. By default, this clock is still SystemClock, but it can now be overridden in tests. DefaultClock offers the freeze(), travel() and scale() methods inspired by timecop.