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

Function timemono_before

ccan/ccan/time/time.h:252–255  ·  view source on GitHub ↗

* timemono_before - is a before b? * @a: one monotonic time. * @b: another monotonic time. * * Example: * static bool still_valid(const struct timemono *start) * { * #define TIMEOUT time_from_msec(1000) * return timemono_before(time_mono(), timemono_add(*start, TIMEOUT)); * } */

Source from the content-addressed store, hash-verified

250 * }
251 */
252static inline bool timemono_before(struct timemono a, struct timemono b)
253{
254 return time_less_(a.ts, b.ts);
255}
256
257/**
258 * time_less - is a before b?

Callers 4

send_pingFunction · 0.85
mainFunction · 0.85
json_injectpaymentonionFunction · 0.85
forward_htlcFunction · 0.85

Calls 1

time_less_Function · 0.85

Tested by 1

mainFunction · 0.68