public class PseudoClock extends Object
| Modifier and Type | Method and Description | 
|---|---|
long | 
advanceTime(long duration,
           TimeUnit unit)
Advances the clock time 
 | 
static PseudoClock | 
getInstance()  | 
long | 
getTime()
Retrieves the current time. 
 | 
void | 
reset()
Resets the clock time to zero. 
 | 
public static PseudoClock getInstance()
public void reset()
public long getTime()
public long advanceTime(long duration,
                        TimeUnit unit)
duration - duration of time in the given unitsunit - time unitCopyright © 2021. All rights reserved.