Should all the uses of System.currentTimeMillis be replaced with SystemClock.currentTimeMillis? I would suppose the meaning of SystemClock is to allow tests to mock it up and simulate slow services and the like.
Of course, this would mean to allow each of the affected classes to receive a Clock as parameter. If not, the SystemClock is used.
Should all the uses of System.currentTimeMillis be replaced with SystemClock.currentTimeMillis? I would suppose the meaning of SystemClock is to allow tests to mock it up and simulate slow services and the like.
Of course, this would mean to allow each of the affected classes to receive a Clock as parameter. If not, the SystemClock is used.