Constructor and Description |
---|
FixedClock(Date date)
Construct a FixedClock with the given date.
|
public FixedClock(Date date)
date
- Date to set the FixedClock to.public long millis()
Clock
public Date date()
Clock
public void setDate(Date date)
public void tick(long duration, TimeUnit unit)
duration
- Duration of time to adjust the clock by.unit
- Unit of time to adjust the clock by.Copyright © 2012–2017. All rights reserved.