Time.now has low precision
--------------------------

                 Key: JRUBY-1970
                 URL: http://jira.codehaus.org/browse/JRUBY-1970
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1RC1
         Environment: Latest JRuby 1.1RC1 from trunk
            Reporter: Vladimir Sizikov
            Assignee: Vladimir Sizikov


Time.now creates time instances that are too imprecise, so that subsequent 
calls to Time.now might even actually return the same value:

{noformat}
10.times {
  a = Time.now;
  b = Time.now;
  p a - b
  p a.to_f - b.to_f
}
{noformat}

JRuby prints:
0.0
0.0
0.0
0.0
0.0
0.0
0.0
....

It would be great to have Time instances a bit more precise and distinguishable.

Fix is coming.

Note: This low resolution issue causes non-deterministic rubyspec failures  for 
Kernel#load
(since Time.now is used there for comparison).


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to