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

Function normalize

ccan/ccan/htable/tools/speed.c:97–102  ·  view source on GitHub ↗

Nanoseconds per operation */

Source from the content-addressed store, hash-verified

95
96/* Nanoseconds per operation */
97static size_t normalize(const struct timeabs *start,
98 const struct timeabs *stop,
99 unsigned int num)
100{
101 return time_to_nsec(time_divide(time_between(*stop, *start), num));
102}
103
104static size_t worst_run(struct htable *ht, size_t *deleted)
105{

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