| 348 | } |
| 349 | |
| 350 | void json_add_timeabs(struct json_stream *result, const char *fieldname, |
| 351 | struct timeabs t) |
| 352 | { |
| 353 | json_add_primitive_fmt(result, fieldname, |
| 354 | "%" PRIu64 ".%09" PRIu64, |
| 355 | (u64)t.ts.tv_sec, (u64)t.ts.tv_nsec); |
| 356 | } |
| 357 | |
| 358 | void json_add_timerel(struct json_stream *result, const char *fieldname, |
| 359 | struct timerel t) |
no test coverage detected