We are using a MockUp to mock System.currentTimeMillis(). Occasionally, some of our unit tests fail because the mocked System.currentTimeMillis() erroneously returns the current time instead of the ...
Many developers use System.currentTimeMillis() to measure how fast their code runs, but this method has serious problems. This project shows why the old way of timing code doesn't work well and how ...