[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: |
felix winkelmann |
Subject: |
Re: [Chicken-users] thread-sleep! using milliseconds->time is broken |
Date: |
Mon, 7 Apr 2008 12:22:24 +0200 |
On Mon, Apr 7, 2008 at 8:16 AM, Jim Ursetto <address@hidden> wrote:
> As is seconds->time. Using SVN 10369.
>
> #;1> (thread-sleep! 1) ; sleeps for 1 second
> #;2> (thread-sleep! (seconds->time 1)) ; returns immediately
> #;3> (thread-sleep! (milliseconds->time 1000)) ; returns immediately
>
> Looks like the contents of the time structure doesn't match what
> ##sys#compute-time-limit is looking for.
The seconds/milliseconds argument must be absolute, not relative.
As specified in srfi-18:
(seconds->time x) ;procedure
Converts into a time object the exact or inexact real number x
representing the number of
seconds elapsed since some implementation dependent reference point.
cheers,
felix
- [Chicken-users] thread-sleep! using milliseconds->time is broken, Jim Ursetto, 2008/04/07
- Re: [Chicken-users] thread-sleep! using milliseconds->time is broken,
felix winkelmann <=
- Re: [Chicken-users] thread-sleep! using milliseconds->time is broken, Jim Ursetto, 2008/04/07
- Re: [Chicken-users] thread-sleep! using milliseconds->time is broken, Graham Fawcett, 2008/04/07
- Re: [Chicken-users] thread-sleep! using milliseconds->time is broken, Jim Ursetto, 2008/04/07
- Re: [Chicken-users] thread-sleep! using milliseconds->time is broken, Graham Fawcett, 2008/04/07
- Re: [Chicken-users] thread-sleep! using milliseconds->time is broken, Jim Ursetto, 2008/04/07
- Re: [Chicken-users] thread-sleep! using milliseconds->time is broken, Graham Fawcett, 2008/04/07
- Re: [Chicken-users] thread-sleep! using milliseconds->time is broken, Daishi Kato, 2008/04/07
- Re: [Chicken-users] thread-sleep! using milliseconds->time is broken, Jim Ursetto, 2008/04/07