| 356 | } |
| 357 | |
| 358 | void json_add_timerel(struct json_stream *result, const char *fieldname, |
| 359 | struct timerel t) |
| 360 | { |
| 361 | json_add_primitive_fmt(result, fieldname, |
| 362 | "%" PRIu64 ".%09" PRIu64, |
| 363 | (u64)t.ts.tv_sec, (u64)t.ts.tv_nsec); |
| 364 | } |
| 365 | |
| 366 | void json_add_timestr(struct json_stream *result, const char *fieldname, |
| 367 | struct timespec ts) |
no test coverage detected