Monday 19 August 2019

java - System.currentTimeMillis()'s accuracy on windows, would it be better to use a linux VM when measuring performance?

From my research, System.currentTimeMillis() is not always accurate, especially on windows. I'm currently carrying out microbenchmarking on a Windows 10 machine. Would switching over to say, a linux VM give me more accurate results when using the method? Thanks.

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...