Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

[13:46:02 CDT(-0500)] <EricDalquist> I really dislike windows

[13:46:26 CDT(-0500)] <EricDalquist> so apparently on various versions of windows System.currentTimeMillis() only has resolution of ~15ms

[13:46:30 CDT(-0500)] <EricDalquist> or worse

[13:46:36 CDT(-0500)] <EricDalquist> depending on system load and interrupt settings

[14:00:03 CDT(-0500)] <athena> ummm wow

[14:00:48 CDT(-0500)] <EricDalquist> yeah

[14:01:03 CDT(-0500)] <EricDalquist> if you're bored I posted a fun blog from sun/oracle about it

[14:01:13 CDT(-0500)] <athena> nice

[14:01:24 CDT(-0500)] <EricDalquist> might need to switch all our unit tests that do timeA - timeB to use nanotime

[14:01:34 CDT(-0500)] <EricDalquist> but it sounds like there isn't really a great solution to Thread.sleep issues

[14:01:56 CDT(-0500)] <EricDalquist> on windows Thread.sleep(1) is likely to actually sleep 10-15ms

[14:01:57 CDT(-0500)] <EricDalquist> maybe more

[14:02:01 CDT(-0500)] <EricDalquist> you're not really sure

[14:02:10 CDT(-0500)] <EricDalquist> depends on the os version, config and hardware