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

Function json_add_timerel

common/json_stream.c:358–364  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358void 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
366void json_add_timestr(struct json_stream *result, const char *fieldname,
367 struct timespec ts)

Callers 2

outgoing_notify_successFunction · 0.85
outgoing_notify_failureFunction · 0.85

Calls 1

json_add_primitive_fmtFunction · 0.85

Tested by

no test coverage detected