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

Method mix

source/game/StarNetPacketSocket.cpp:11–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9 : m_calculationWindow(calculationWindow), m_stats(), m_totalBytes(0), m_lastMixTime(0) {}
10
11void PacketStatCollector::mix(size_t size) {
12 calculate();
13 m_totalBytes += size;
14}
15
16void PacketStatCollector::mix(PacketType type, size_t size, bool addToTotal) {
17 calculate();

Callers 6

sendPacketsMethod · 0.45
receivePacketsMethod · 0.45
writeDataMethod · 0.45
readDataMethod · 0.45
updateMethod · 0.45
renderMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected