From timber-lang.org >> Language summary >> Time constructs:

Time windows of reactions are assigned as follows:

Regards,
Andrey

On Oct 26, 2009, at 10:01, Ivan Tarasov wrote:

I'm trying to understand what constitutes an RTS and how a Timber
program translated into C is actually executed. So, I'm reading the
RTS implementations' code.

In rtsARM/rts.c, in ASYNC implementation, lines 439-442 we can see the
following code:
           if (LESS(m->baseline, now)) {
               m->baseline = now;
               // debug("^");
           }
Same code is present in ASYNC implementation in rtsPOSIX/rts.c, lines 354-355

That means that if the absolute time value for the baseline for the
action to be scheduled is in the past, we set the baseline to the
current time. However, since all the time calculations are relative to
the baseline, that would mean that all the following actions to be
scheduled from the one being scheduled at the moment would "drift". Is
this an intended behavior? I'm not sure that's the right decision.

Ivan
_______________________________________________
Timber mailing list
Timber@haskell.org
http://www.haskell.org/mailman/listinfo/timber

------------------------------------------------------------------------
Andrey Kruglyak
PhD student


Dept. of Computer Science and Electrical Engineering
Lulea University of Technology, Lulea, Sweden
T +46 920 49 23 57 (office)
T +46 706 16 76 03 (mobile)
Office A2314 (A-huset)