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

Function timemono_between

ccan/ccan/time/time.h:365–372  ·  view source on GitHub ↗

* timemono_between - time between two monotonic times * @recent: the larger time. * @old: the smaller time. * * This returns a well formed struct timerel of @recent - @old. */

Source from the content-addressed store, hash-verified

363 * This returns a well formed struct timerel of @recent - @old.
364 */
365static inline struct timerel timemono_between(struct timemono recent,
366 struct timemono old)
367{
368 struct timerel t;
369
370 t.ts = time_sub_(recent.ts, old.ts);
371 return t;
372}
373
374/**
375 * timemono_since - elapsed monotonic time since @old

Callers 11

mainFunction · 0.85
io_loopFunction · 0.85
timemono_sinceFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
read_jsonFunction · 0.85
bcli_failureFunction · 0.85
least_costFunction · 0.85
mainFunction · 0.85
measure_least_costFunction · 0.85
mainFunction · 0.85

Calls 1

time_sub_Function · 0.85

Tested by 2

mainFunction · 0.68
mainFunction · 0.68