example: use new flb_time_now() API format (nanoseconds)
@@ -47,8 +47,8 @@ int main()
/* Push some data */
for (i = 0; i < 100; i++) {
n = snprintf(tmp, sizeof(tmp) - 1,
- "[%lu, {\"key\": \"val %i\"}]",
- time(NULL), i);
+ "[%f, {\"key\": \"val %i\"}]",
+ flb_time_now(), i);
flb_lib_push(ctx, in_ffd, tmp, n);
}
