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

Function time_between

ccan/ccan/time/time.h:350–356  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

348 * This returns a well formed struct timerel of @a - @b.
349 */
350static inline struct timerel time_between(struct timeabs recent, struct timeabs old)
351{
352 struct timerel t;
353
354 t.ts = time_sub_(recent.ts, old.ts);
355 return t;
356}
357
358/**
359 * timemono_between - time between two monotonic times

Callers 15

gossip_store_loadFunction · 0.85
mainFunction · 0.85
const_time_testFunction · 0.85
nonconst_time_testFunction · 0.85
install_expiration_timerFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
normalizeFunction · 0.85
normalizeFunction · 0.85
normalizeFunction · 0.85
normalizeFunction · 0.85
normalizeFunction · 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