MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / stats

Method stats

source/game/StarNetPacketSocket.cpp:32–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30}
31
32PacketStats PacketStatCollector::stats() const {
33 const_cast<PacketStatCollector*>(this)->calculate();
34 return m_stats;
35}
36
37void PacketStatCollector::calculate() {
38 int64_t currentTime = Time::monotonicMilliseconds();

Callers 2

incomingStatsMethod · 0.80
outgoingStatsMethod · 0.80

Calls 1

calculateMethod · 0.45

Tested by

no test coverage detected