Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/e2wugui/zeze
/ count
Method
count
ZezeJava/ZezeJava/src/main/java/Zeze/Util/TimeCounter.java:41–51 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
39
}
40
41
public
long count() {
42
lock();
43
try {
44
var count = 0L;
45
for
(var c : counters)
46
count += c.counter;
47
return
count;
48
} finally {
49
unlock();
50
}
51
}
52
53
public
TimeCounter(
int
seconds) {
54
this(seconds, true);
Callers
4
testTimeCounter
Method · 0.95
uiThreadScheduleTime
Function · 0.45
choiceRequest
Method · 0.45
getCount
Method · 0.45
Calls
2
lock
Method · 0.65
unlock
Method · 0.65
Tested by
1
testTimeCounter
Method · 0.76