MCPcopy Create free account
hub / github.com/apple/foundationdb / resetInterval

Method resetInterval

fdbrpc/Stats.actor.cpp:66–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64}
65
66void Counter::resetInterval() {
67 interval_start_value += interval_delta;
68 interval_delta = 0;
69 interval_sq_time = 0;
70 interval_start = now();
71 if (last_event == 0) {
72 last_event = interval_start;
73 }
74 roughness_interval_start = last_event;
75}
76
77void Counter::clear() {
78 resetInterval();

Callers 2

logToTraceEventMethod · 0.45

Calls 1

nowFunction · 0.85

Tested by

no test coverage detected