| 333 | } |
| 334 | |
| 335 | void json_add_timeabs(struct json_stream *result, const char *fieldname, |
| 336 | struct timeabs t) |
| 337 | { |
| 338 | json_add_primitive_fmt(result, fieldname, |
| 339 | "%" PRIu64 ".%03" PRIu64, |
| 340 | (u64)t.ts.tv_sec, (u64)t.ts.tv_nsec / 1000000); |
| 341 | } |
| 342 | |
| 343 | void json_add_time(struct json_stream *result, const char *fieldname, |
| 344 | struct timespec ts) |
no test coverage detected