Fix usec rounding errors on JRuby and MRI.

[ fix #2741 ]