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

Function time_before

ccan/ccan/time/time.h:235–238  ·  view source on GitHub ↗

* time_before - is a before b? * @a: one absolute time. * @b: another absolute time. * * Example: * static bool still_valid(const struct timeabs *start) * { * #define TIMEOUT time_from_msec(1000) * return time_before(time_now(), timeabs_add(*start, TIMEOUT)); * } */

Source from the content-addressed store, hash-verified

233 * }
234 */
235static inline bool time_before(struct timeabs a, struct timeabs b)
236{
237 return time_less_(a.ts, b.ts);
238}
239
240/**
241 * timemono_before - is a before b?

Callers 3

mainFunction · 0.85
mainFunction · 0.85
last_time_checkFunction · 0.85

Calls 1

time_less_Function · 0.85

Tested by 2

mainFunction · 0.68
mainFunction · 0.68