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

Function time_less_

ccan/ccan/time/time.h:213–221  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211}
212
213static inline bool time_less_(struct timespec a, struct timespec b)
214{
215 if (TIME_CHECK(a).tv_sec < TIME_CHECK(b).tv_sec)
216 return true;
217 else if (a.tv_sec > b.tv_sec)
218 return false;
219
220 return a.tv_nsec < b.tv_nsec;
221}
222
223/**
224 * time_before - is a before b?

Callers 4

time_beforeFunction · 0.85
timemono_beforeFunction · 0.85
time_lessFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by 1

mainFunction · 0.68