[zeromq-dev] tasksink2 example slightly confusing

Pieter Hintjens ph at imatix.com
Wed Nov 10 18:26:42 CET 2010


You're right, I initially intended to add up each task's time and then
switched to just calculating the total elapsed time.  I'll fix the C
code and as many of the translations as I can...

On Wed, Nov 10, 2010 at 6:12 PM, jeremy avnet <spork-zmq at theory.org> wrote:
> https://github.com/imatix/zguide/blob/master/examples/C/tasksink2.c#L27
>
> It looks like the code was going to add up the results received (total_msec is set to zero before processing 100 tasks), but then after the processing loop, total_msec is just set to the clock time duration.
>
> Was the intention to calculate both or just the clock time?
>
> .:. brainsik
>
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
>
>



More information about the zeromq-dev mailing list