# Timer examples

**URL:** <https://www.ruby-forum.com/t/timer-examples/172467>\
**Category:** Ruby\
**Created:** [July 22, 2009, 12:29am UTC](https://www.ruby-forum.com/t/timer-examples/172467 "2009-07-22T00:29:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mathspeedy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@Mathspeedy](https://www.ruby-forum.com/u/Mathspeedy)\
**Post date:** [July 22, 2009, 12:29am UTC](https://www.ruby-forum.com/t/timer-examples/172467/1 "2009-07-22T00:29:02Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Mathspeedy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@Mathspeedy](https://www.ruby-forum.com/u/Mathspeedy)\
**Post date:** [July 22, 2009, 10:53am UTC](https://www.ruby-forum.com/t/timer-examples/172467/2 "2009-07-22T10:53:15Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Mathspeedy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@Mathspeedy](https://www.ruby-forum.com/u/Mathspeedy)\
**Post date:** [July 22, 2009, 5:49pm UTC](https://www.ruby-forum.com/t/timer-examples/172467/3 "2009-07-22T17:49:08Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Mathspeedy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/ea666f/32.png) [@Mathspeedy](https://www.ruby-forum.com/u/Mathspeedy)\
**Post date:** [July 22, 2009, 6:56pm UTC](https://www.ruby-forum.com/t/timer-examples/172467/4 "2009-07-22T18:56:28Z")

</div>

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](http://rubyforge.org/projects/actiontimer)

and the source stuff on github:

> **[GitHub - spox/actiontimer: Simple timer for a complex world](https://github.com/spox/actiontimer)**
>
> Simple timer for a complex world. Contribute to spox/actiontimer development by creating an account on GitHub.
