aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/src/read.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/src/read.rs')
-rwxr-xr-xazalea-protocol/src/read.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/azalea-protocol/src/read.rs b/azalea-protocol/src/read.rs
index 88fe95cf..4f8b52af 100755
--- a/azalea-protocol/src/read.rs
+++ b/azalea-protocol/src/read.rs
@@ -149,7 +149,11 @@ where
if let Some(compression_threshold) = compression_threshold {
buf = compression_decoder(&mut buf.as_slice(), compression_threshold).await?;
}
+
+ let start_time = std::time::Instant::now();
+ println!("decoding packet");
let packet = packet_decoder(&mut buf.as_slice(), flow).await?;
+ println!("decoded packet in {}ms", start_time.elapsed().as_millis());
Ok(packet)
}