thanks for your good patch, it does exactly what I was expecting. I've just one improvement which is moving the check for nsecs >= 10000 down a bit so we don't throw errors when they are not entirely necessary.
nsecs >= 10000
I'd love to see this merged to the master!
Add test for msec regressions as well
Don't throw the error so early, might result in unnecessary errors.