> How would you choose the "expected time of execution"? Suppose you are at timestamp 10000 ms and you schedule a task for execution in 500 ms. The expected time of execution would be timestamp 10500ms. Suppose the actual time of execution would be 10560ms. In this case, the lag would be 60 ms.
To see a Node.js module which does this, check out node-toobusy [1]. [1] https://github.com/lloyd/node-toobusy#tunable-parameters On Sat, Jan 2, 2016 at 6:50 PM Iñaki Baz Castillo <[email protected]> wrote: > 2016-01-01 9:10 GMT+01:00 Ben Ripkens <[email protected]>: > > lag = abs(expected time of execution - actual time of execution) > > How would you choose the "expected time of execution"? > > > > -- > Iñaki Baz Castillo > <[email protected]> > > -- > You received this message because you are subscribed to the Google Groups > "libuv" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/libuv. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
