1 ! Copyright (C) 2012 Eungju PARK.
2 ! See http://factorcode.org/license.txt for BSD license.
3 USING: byte-arrays calendar destructors formatting io kernel
4 math strings sequences zeromq zeromq.ffi ;
5 IN: zeromq.examples.tasksink
10 ZMQ_PULL <zmq-socket> &dispose
11 dup "tcp://*:5558" zmq-bind
12 ! Wait for start of batch
16 ! Process 100 confirmations
19 10 rem zero? [ ":" ] [ "." ] if write flush
21 ! Calculate and report duration of batch
22 now swap time- duration>milliseconds "Total elapsed time: %d msec\n" printf