Timer examples

Hi !
I think the title says it all,
I would like to see some timer examples,
just for fun =D

Hi,

Am Mittwoch, 22. Jul 2009, 07:25:14 +0900 schrieb Mathspeedy:

I think the title says it all,
I would like to see some timer examples,

I examined the whole interpreter source code and could not find
any way to call alarm() or setitimer() by Ruby methods. I really
miss that!

Bertram

Bertram S. wrote:

Bertram

There’s a Timeout method I use that has been superior to anything I
could find
in Python, and was a reason for me using Ruby instead at one point:

end

As you see by my comment above, some of the docs are not to my
satisfaction.
Still, I have been using this happily since 2007.

On Tuesday 21 July 2009 15:25:14 Mathspeedy wrote:

Hi !
I think the title says it all,
I would like to see some timer examples,
just for fun =D


Mathspeedy <3 Linux and Ruby

I have a simple timer library I use regularly. You can find the project
page
here:

http://rubyforge.org/projects/actiontimer

and the source stuff on github:

http://github.com/spox/actiontimer

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs