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

Function time_after

ccan/ccan/time/time.h:181–184  ·  view source on GitHub ↗

* time_after - is a after b? * @a: one abstime. * @b: another abstime. * * Example: * static bool timed_out(const struct timeabs *start) * { * #define TIMEOUT time_from_msec(1000) * return time_after(time_now(), timeabs_add(*start, TIMEOUT)); * } */

Source from the content-addressed store, hash-verified

179 * }
180 */
181static inline bool time_after(struct timeabs a, struct timeabs b)
182{
183 return time_greater_(a.ts, b.ts);
184}
185
186/**
187 * time_greater - is a greater than b?

Callers 5

install_expiration_timerFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
retry_step_cbFunction · 0.85
waitblockheight_cbFunction · 0.85

Calls 1

time_greater_Function · 0.85

Tested by 2

mainFunction · 0.68
mainFunction · 0.68