MCPcopy Index your code
hub / github.com/ElementsProject/lightning / timer_addrel

Function timer_addrel

ccan/ccan/timer/timer.c:105–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

103}
104
105void timer_addrel(struct timers *timers, struct timer *t, struct timerel rel)
106{
107 assert(list_node_initted(&t->list));
108
109 t->time = time_to_grains(timemono_add(time_mono(), rel));
110
111 /* Added in the past? Treat it as imminent. */
112 if (t->time < timers->base)
113 t->time = timers->base;
114
115 if (t->time < timers->first)
116 timers->first = t->time;
117
118 timer_add_raw(timers, t);
119}
120
121void timer_addmono(struct timers *timers, struct timer *t, struct timemono when)
122{

Callers 4

init_connFunction · 0.85
mainFunction · 0.85
new_reltimer_Function · 0.85
plugin_timer_Function · 0.85

Calls 5

list_node_inittedFunction · 0.85
time_to_grainsFunction · 0.85
timemono_addFunction · 0.85
time_monoFunction · 0.85
timer_add_rawFunction · 0.85

Tested by 2

init_connFunction · 0.68
mainFunction · 0.68