Repository navigation
Conversation
|
What's the testing plan for this? Can we mock file system time interface? What happens if the resolution is 0.999s? |
I can do this, but seems more trouble than it's worth. Maybe just ask @gracjan to test on his system?
We can change the check to |
|
Legacy code is code without an automated test suite ;) But, we do have Mac OS X CI setup, so we could just test to make sure the calibration time doesn't take a wacky amount of time. Isn't that a more reasonable metric? We don't want to spend too much time calibrating, so use that as the stopping point? |
OK, will do. |
|
BTW, this is well worth solving; I bet we are chewing up a decent amount of time in our Mac OS X CI recalibrating here! |
|
Added a test. |
fc96286 to
d62d7c1
Compare
ac7a079 to
05aaaa5
Compare
|
Increasing the epsilon to 0.1 s seems to do the trick... will now try @gracjan's suggestion. |
|
Still failing Travis on OS X, it's real. |
|
The list of With bail-out after first measurement that gives 1s or more the list will be I'd like to make clear that '@gracjan's suggestion' is to measure file system resolution not clock resolution and that should take on average 0.5s on 1s resolution filesystem. |
05aaaa5 to
9752f24
Compare
|
Remilestoned. |
|
Marking this PR as draft 🙂 |
|
Hello, I am going through old PRs to check whether they are stale. If this PR is still “live”, write a comment and I will remove the |
Fixes #4230.