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

Function new_timer

ccan/ccan/timer/test/run-corrupt.c:7–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5#include <ccan/tap/tap.h>
6
7static void new_timer(struct timers *timers, unsigned long nsec)
8{
9 struct timer *timer;
10 struct timemono when;
11
12 timer = malloc(sizeof(*timer));
13 timer_init(timer);
14 when.ts.tv_sec = 0; when.ts.tv_nsec = nsec;
15 timer_addmono(timers, timer, when);
16}
17
18static void update_and_expire(struct timers *timers)
19{

Callers 1

mainFunction · 0.85

Calls 2

timer_initFunction · 0.85
timer_addmonoFunction · 0.85

Tested by

no test coverage detected