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

Function timemono_since

ccan/ccan/time/time.h:378–383  ·  view source on GitHub ↗

* timemono_since - elapsed monotonic time since @old * @old: a monotonic time from the past. */

Source from the content-addressed store, hash-verified

376 * @old: a monotonic time from the past.
377 */
378static inline struct timerel timemono_since(struct timemono old)
379{
380 struct timemono now = time_mono();
381
382 return timemono_between(now, TIMEMONO_CHECK(old));
383}
384
385/**
386 * timeabs_sub - subtract a relative time from an absolute time

Callers 2

mainFunction · 0.85
mainFunction · 0.85

Calls 2

time_monoFunction · 0.85
timemono_betweenFunction · 0.85

Tested by 2

mainFunction · 0.68
mainFunction · 0.68