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

Function normalize

ccan/ccan/htable/tools/density.c:32–37  ·  view source on GitHub ↗

Nanoseconds per operation */

Source from the content-addressed store, hash-verified

30
31/* Nanoseconds per operation */
32static size_t normalize(const struct timeabs *start,
33 const struct timeabs *stop,
34 unsigned int num)
35{
36 return time_to_nsec(time_divide(time_between(*stop, *start), num));
37}
38
39static size_t average_run(const struct htable_ptrint *ht, size_t count, size_t *longest)
40{

Callers 1

mainFunction · 0.70

Calls 3

time_to_nsecFunction · 0.85
time_divideFunction · 0.85
time_betweenFunction · 0.85

Tested by

no test coverage detected