diff options
Diffstat (limited to 'examples/amqp_consumer.c')
-rw-r--r-- | examples/amqp_consumer.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/examples/amqp_consumer.c b/examples/amqp_consumer.c index 2a0d9b9..2710643 100644 --- a/examples/amqp_consumer.c +++ b/examples/amqp_consumer.c @@ -56,27 +56,26 @@ #include <amqp.h> #include <amqp_framing.h> -#include <unistd.h> #include <assert.h> -#include "example_utils.h" +#include "utils.h" #define SUMMARY_EVERY_US 1000000 static void run(amqp_connection_state_t conn) { - long long start_time = now_microseconds(); + uint64_t start_time = now_microseconds(); int received = 0; int previous_received = 0; - long long previous_report_time = start_time; - long long next_summary_time = start_time + SUMMARY_EVERY_US; + uint64_t previous_report_time = start_time; + uint64_t next_summary_time = start_time + SUMMARY_EVERY_US; amqp_frame_t frame; int result; size_t body_received; size_t body_target; - long long now; + uint64_t now; while (1) { now = now_microseconds(); |