ruby-changes:5617
From: shyouhei <ko1@a...>
Date: Fri, 13 Jun 2008 11:58:08 +0900 (JST)
Subject: [ruby-changes:5617] Ruby:r17123 (ruby_1_8_6): merge revision(s) 15369:
shyouhei 2008-06-13 11:57:53 +0900 (Fri, 13 Jun 2008) New Revision: 17123 Modified files: branches/ruby_1_8_6/ChangeLog branches/ruby_1_8_6/lib/benchmark.rb branches/ruby_1_8_6/version.h Log: merge revision(s) 15369: * lib/benchmark.rb (Benchmark::realtime): make Benchmark#realtime a bit faster. a patch from Alexander Dymo <dymo@u...> in [ruby-core:15337]. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/ChangeLog?r1=17123&r2=17122&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/version.h?r1=17123&r2=17122&diff_format=u http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8_6/lib/benchmark.rb?r1=17123&r2=17122&diff_format=u Index: ruby_1_8_6/ChangeLog =================================================================== --- ruby_1_8_6/ChangeLog (revision 17122) +++ ruby_1_8_6/ChangeLog (revision 17123) @@ -1,3 +1,9 @@ +Fri Jun 13 11:57:46 2008 Yukihiro Matsumoto <matz@r...> + + * lib/benchmark.rb (Benchmark::realtime): make Benchmark#realtime + a bit faster. a patch from Alexander Dymo <dymo@u...> in + [ruby-core:15337]. + Fri Jun 13 11:50:59 2008 Yukihiro Matsumoto <matz@r...> * io.c (rb_open_file): should check NUL in path. Index: ruby_1_8_6/version.h =================================================================== --- ruby_1_8_6/version.h (revision 17122) +++ ruby_1_8_6/version.h (revision 17123) @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2008-06-13" #define RUBY_VERSION_CODE 186 #define RUBY_RELEASE_CODE 20080613 -#define RUBY_PATCHLEVEL 170 +#define RUBY_PATCHLEVEL 171 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 Index: ruby_1_8_6/lib/benchmark.rb =================================================================== --- ruby_1_8_6/lib/benchmark.rb (revision 17122) +++ ruby_1_8_6/lib/benchmark.rb (revision 17123) @@ -304,7 +304,10 @@ # Returns the elapsed real time used to execute the given block. # def realtime(&blk) # :yield: - Benchmark::measure(&blk).real + r0 = Time.now + yield + r1 = Time.now + r1.to_f - r0.to_f end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/