[Orca-dev] Orcallator.se timestamp patch

Blair Zajac blair at orcaware.com
Mon Jun 28 23:00:39 PDT 2004


Dmitry Berezin wrote:

> Blair,
> 
> Here is the patch to make orcallator.se sleep to exact multiple of interval
> that we have discussed. I suspect that you might not like one-liners like
> this one "orca_sleep(((now + 5) < sleep_till ? now + 5 : sleep_till));",
> which I like to use. If this is the problem, I suggest a couple of
> alternatives -
>   1. Create a variable and use if-then-else to assign it a value of either
> "now + 5" or "sleep_till" and then call orca_sleep(<variable>).
>   2. Use if-then-else to call orca_sleep(now + 5) or orca_sleep(sleep_till).
>   3. Define a macro that chooses the smaller of two values and use it in
> calls to orca_sleep.
> 
> I'd stick with what I have, but if I had to choose out of the three above,
> number 2 is probably the cleaner one.
> 
>   -Dmitry.

Dmitry,

Great patch.  Thanks for submitting it.

I've added it to the Orca Subversion tree in revision 362:

http://www.orcaware.com/pipermail/orca-checkins/2004-June/000241.html

What other changes did you want to make to Orca?

Best,
Blair

-- 
Blair Zajac <blair at orcaware.com>
Plots of your system's performance - http://www.orcaware.com/orca/



More information about the Orca-dev mailing list