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

Function timeabs_add

ccan/ccan/time/time.h:434–440  ·  view source on GitHub ↗

* timeabs_add - add a relative to an absolute time * @a: the absolute time. * @b: a relative time. * * The times must not overflow, or the results are undefined. * * Example: * // We do one every second. * static struct timeabs next_time(void) * { * return timeabs_add(time_now(), time_from_msec(1000)); * } */

Source from the content-addressed store, hash-verified

432 * }
433 */
434static inline struct timeabs timeabs_add(struct timeabs a, struct timerel b)
435{
436 struct timeabs t;
437
438 t.ts = time_add_(a.ts, b.ts);
439 return t;
440}
441
442/**
443 * timemono_add - add a relative to a monotonic time

Callers 5

mainFunction · 0.85
mainFunction · 0.85
set_channel_configFunction · 0.85
json_keysendFunction · 0.85
json_payFunction · 0.85

Calls 1

time_add_Function · 0.85

Tested by 2

mainFunction · 0.68
mainFunction · 0.68