Skip to content

thedrlambda/virtual-time

Repository files navigation

= A Minimal Virtual Time Library for Java

This library is an experiment, documented in my blog post.

To use it replace:

  • System.currentTimeMillis() with time.currentTimeMillis()
  • new Thread(...) with time.freshThread(...)
  • new Semaphore(...) with time.freshSemaphore(...)
  • Thread.sleep(...) with time.sleep(...)

Then instantiate Concrete in your main method and propagate it as a parameter throughout the program where you need time.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages