(cherry picked from commit be144117a885cb39bc192279c96cbe3790dc77b1) (cherry picked from commit dab1deb9a0c96471b6da4ef95be86cbc81d55305)
@@ -33,7 +33,8 @@ public class FakeTimer extends Timer {
/** Constructs a FakeTimer with a non-zero value */
public FakeTimer() {
- nowNanos = 1000; // Initialize with a non-trivial value.
+ // Initialize with a non-trivial value.
+ nowNanos = TimeUnit.MILLISECONDS.toNanos(1000);
}
@Override