MCPcopy Create free account
hub / github.com/ElementsProject/lightning / json_add_timeabs

Function json_add_timeabs

common/json_stream.c:335–341  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

333}
334
335void 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
343void json_add_time(struct json_stream *result, const char *fieldname,
344 struct timespec ts)

Callers 1

Calls 1

json_add_primitive_fmtFunction · 0.85

Tested by

no test coverage detected