Replace usage of `System.currentTimeMillis()` by a `Clock` interface