Jamey Cribbs
6/9/2009 1:42:00 PM
Off the top of my head, you can do something like:
while true
sleep 1
stuff
end
On Tue, Jun 9, 2009 at 8:59 AM, Christoph
Jasinski<christoph.jasinski@googlemail.com> wrote:
> Hi,
> is it possible to execute a block each second for let's say 8 hours a day=
?
> Instead of using threads maybe. Something like this:
>
> Time.each.second do {
> =A0stuff
> }
>
> Thanks
>
> Cheers,
>
> Chris
>