Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apple/foundationdb
/ SimpleCounter
Method
SimpleCounter
fdbserver/VersionedBTree.actor.cpp:9695–9695 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
9693
9694
struct SimpleCounter {
9695
SimpleCounter() : x(0), t(timer()), start(t), xt(0) {}
9696
void operator+=(int n) { x += n; }
9697
void operator++() { x++; }
9698
int64_t get() { return x; }
Callers
nothing calls this directly
Calls
1
timer
Function · 0.50
Tested by
no test coverage detected