diff options
| author | Loic Guegan <loic.guegan@mailbox.org> | 2023-08-25 11:54:39 +0200 |
|---|---|---|
| committer | Loic Guegan <loic.guegan@mailbox.org> | 2023-08-25 11:54:39 +0200 |
| commit | 2bc5f2c00fe9a078f402d45e7fc344d2064aa53d (patch) | |
| tree | 45102f4c1163d7b766d76f23624e5aed3ac59125 | |
| parent | f68447e201b2dbf0d9c25537cb1d26e2f7eea2ac (diff) | |
Minor changes
| -rw-r--r-- | src/publisher.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/publisher.c b/src/publisher.c index ce6a022..bf1d480 100644 --- a/src/publisher.c +++ b/src/publisher.c @@ -155,10 +155,11 @@ void *publisher(void *zmq_publisher) { int queue_id = 0; while (!__stop) { if (queues[queue_id].issending) { + long long startat=TIMESTAMP(); printf("Publishing..."); zmq_send(zmq_publisher, queues[queue_id].msg, queues[queue_id].size, 0); queues[queue_id].issending = 0; - printf("done\n"); + printf("done (duration %lld)\n",TIMESTAMP()-startat); } else { #if LOG_DELAY > 0 usleep(LOG_DELAY * 1000); |
