Skip to content


[Truffle] Have a decent path for Time#to_f since that seems used much…
Browse files Browse the repository at this point in the history
… in practice.

* Time#-(Time) should be used instead.
* Or even better Process.clock_gettime(Process::CLOCK_MONOTONIC).
  • Loading branch information
eregon committed Apr 21, 2015
1 parent 470acf2 commit 7e88d72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion truffle/src/main/ruby/core/rubinius/common/time.rb
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ def to_r

def to_f
seconds + nsec * 0.000000001 # Truffle: optimized

def +(other)
Expand Down

0 comments on commit 7e88d72

Please sign in to comment.