MCPcopy 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

testTimeCounterMethod · 0.95
uiThreadScheduleTimeFunction · 0.45
choiceRequestMethod · 0.45
getCountMethod · 0.45

Calls 2

lockMethod · 0.65
unlockMethod · 0.65

Tested by 1

testTimeCounterMethod · 0.76