mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-16 11:58:00 +00:00
Make timings for player network more detailed
This commit is contained in:
@@ -1877,7 +1877,7 @@ class Server{
|
||||
if(empty($packets)){
|
||||
throw new \InvalidArgumentException("Cannot send empty batch");
|
||||
}
|
||||
Timings::$playerNetworkTimer->startTiming();
|
||||
Timings::$playerNetworkSendCompressTimer->startTiming();
|
||||
|
||||
/** @var NetworkSession[] $targets */
|
||||
$targets = [];
|
||||
@@ -1908,7 +1908,7 @@ class Server{
|
||||
}
|
||||
}
|
||||
|
||||
Timings::$playerNetworkTimer->stopTiming();
|
||||
Timings::$playerNetworkSendCompressTimer->stopTiming();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user