MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / timer_usec

Function timer_usec

deps/jemalloc/test/src/timer.c:15–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15uint64_t
16timer_usec(const timedelta_t *timer) {
17 nstime_t delta;
18
19 nstime_copy(&delta, &timer->t1);
20 nstime_subtract(&delta, &timer->t0);
21 return nstime_ns(&delta) / 1000;
22}
23
24void
25timer_ratio(timedelta_t *a, timedelta_t *b, char *buf, size_t buflen) {

Callers 4

timer_ratioFunction · 0.70
compare_funcsFunction · 0.50
test_hookedFunction · 0.50
test_unhookedFunction · 0.50

Calls 3

nstime_copyFunction · 0.50
nstime_subtractFunction · 0.50
nstime_nsFunction · 0.50

Tested by

no test coverage detected