= A Minimal Virtual Time Library for Java
This library is an experiment, documented in my blog post.
To use it replace:
System.currentTimeMillis()withtime.currentTimeMillis()new Thread(...)withtime.freshThread(...)new Semaphore(...)withtime.freshSemaphore(...)Thread.sleep(...)withtime.sleep(...)
Then instantiate Concrete in your main method and propagate it as a parameter throughout the program where you need time.