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

Function timemono_between

ccan/ccan/time/time.h:399–406  ·  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

397 * This returns a well formed struct timerel of @recent - @old.
398 */
399static inline struct timerel timemono_between(struct timemono recent,
400 struct timemono old)
401{
402 struct timerel t;
403
404 t.ts = time_sub_(recent.ts, old.ts);
405 return t;
406}
407
408/**
409 * timemono_since - elapsed monotonic time since @old

Callers 15

maybe_gossip_msgFunction · 0.85
write_to_subdFunction · 0.85
read_hdr_from_peerFunction · 0.85
handle_onion_messageFunction · 0.85
gossip_store_upgradeFunction · 0.85
mainFunction · 0.85
const_time_testFunction · 0.85
nonconst_time_testFunction · 0.85
give_progressFunction · 0.85
mainFunction · 0.85
io_loopFunction · 0.85
timemono_sinceFunction · 0.85

Calls 1

time_sub_Function · 0.85

Tested by 5

mainFunction · 0.68
const_time_testFunction · 0.68
nonconst_time_testFunction · 0.68
mainFunction · 0.68
mainFunction · 0.68