# "benchmark.rb:435: warning: obsolete method"

**URL:** <https://rubytalk.org/t/benchmark-rb-435-warning-obsolete-method/5489>\
**Category:** ruby-talk\
**Created:** [3 April 2003 18:40 UTC](https://rubytalk.org/t/benchmark-rb-435-warning-obsolete-method/5489 "2003-04-03T18:40:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Brian\_Candler](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@Brian\_Candler](https://rubytalk.org/u/Brian_Candler)\
**Post date:** [3 April 2003 18:40 UTC](https://rubytalk.org/t/benchmark-rb-435-warning-obsolete-method/5489/1 "2003-04-03T18:40:14Z")

</div>

Just been playing with 1.8 preview 2, would like to point out that the  
following warning is getting generated in programs which use the benchmark  
module:

/usr/local/lib/ruby/site\_ruby/1.8/benchmark.rb:435: warning: obsolete method Time::times; use Process::times  
/usr/local/lib/ruby/site\_ruby/1.8/benchmark.rb:435: warning: obsolete method Time::times; use Process::times

Regards,

Brian.

---

<div class="post-metadata">

**Author:** ![Brian\_Candler](https://avatars.discourse-cdn.com/v4/letter/b/5f9b8f/32.png) [@Brian\_Candler](https://rubytalk.org/u/Brian_Candler)\
**Post date:** [3 April 2003 19:09 UTC](https://rubytalk.org/t/benchmark-rb-435-warning-obsolete-method/5489/2 "2003-04-03T19:09:21Z")

</div>

Oops, my fault. I had accidentally installed the shim onto 1.8, so I rm -rf’d  
/usr/local/lib/ruby/1.8 and reinstalled it from scratch - but I had  
forgotten to rm -rf /usr/local/lib/ruby/site\_ruby/1.8

Sorry for the noise!

Brian.

> **···**
>
> On Fri, Apr 04, 2003 at 03:40:14AM +0900, Brian Candler wrote:
> 
> > Just been playing with 1.8 preview 2, would like to point out that the  
> > following warning is getting generated in programs which use the benchmark  
> > module:
> > 
> > /usr/local/lib/ruby/site\_ruby/1.8/benchmark.rb:435: warning: obsolete method Time::times; use Process::times  
> > /usr/local/lib/ruby/site\_ruby/1.8/benchmark.rb:435: warning: obsolete method Time::times; use Process::times

---

<div class="post-metadata">

**Author:** ![Hugh\_Sasse](https://avatars.discourse-cdn.com/v4/letter/h/d6d6ee/32.png) [@Hugh\_Sasse](https://rubytalk.org/u/Hugh_Sasse)\
**Post date:** [4 April 2003 09:37 UTC](https://rubytalk.org/t/benchmark-rb-435-warning-obsolete-method/5489/3 "2003-04-04T09:37:37Z")

</div>

> Oops, my fault. I had accidentally installed the shim onto 1.8, so I rm -rf’d  
> /usr/local/lib/ruby/1.8 and reinstalled it from scratch - but I had  
> forgotten to rm -rf /usr/local/lib/ruby/site\_ruby/1.8

This does re-raise the point that it could be worth having an  
uninstall:  
target in the Ruby makefile. “Ubiquitous Automation”, to quote! 🙂

> Sorry for the noise!
> 
> Brian.

```
    Hugh

```

> **···**
>
> On Fri, 4 Apr 2003, Brian Candler wrote:
> 
> >
