[chuck-users] now v.s. actual time

Stephen Sinclair radarsat1 at gmail.com
Thu Oct 9 22:49:19 EDT 2008

On Thu, Oct 9, 2008 at 10:09 PM, Tom Lieber <lieber at princeton.edu> wrote:
>> In other words, if a function takes 3 ms to complete, you could make
>> sure not to interrupt other shreds by,
>> while (...) {
>>  longfunction();
>>  realnow => now;
>> }
>> This would ensure that logical time advances during the computation,
>> while not forcing you to guess the actual time that longfunction()
>> takes to execute.
>> Note that none of this means changing anything in the shreduler.
> That wouldn't help at all, though. ChucK has to execute longfunction()
> to completion (holding up every other shred during that time) before
> it gets to "realnow => now;".

Sorry, I meant to imply that longfunction() is a short part of a
longer, iterative computation.
In other words, all meant to say is, "move time along in the middle of
your long computation".


More information about the chuck-users mailing list