We should be using `Instant` and `Duration` from the `java.time` package instead of millisecond times stored as `long`s or `int`s.