[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] thread-sleep! using milliseconds->time is broken
From: |
Jim Ursetto |
Subject: |
Re: [Chicken-users] thread-sleep! using milliseconds->time is broken |
Date: |
Mon, 7 Apr 2008 14:00:48 -0600 |
On 4/7/08, Graham Fawcett <address@hidden> wrote:
> On Mon, Apr 7, 2008 at 1:47 PM, Jim Ursetto <address@hidden> wrote:
> > So I need to do this?
> >
> > (thread-sleep!
> > (milliseconds->time (+ 500 (time->milliseconds (current-time)))))
>
> Just this:
> (thread-sleep! 0.5)
That would be the easy solution, yeah. But it can not be accomplished from
within an egg using (declare fixnum-arithmetic) unless you call into another
compilation unit. As far as I know. And I don't want to introduce a
dependency on a single-function egg.