Add time of handshake to output

This commit is contained in:
2024-05-16 15:06:17 +02:00
parent 03128a7804
commit 3eabd4add6

View File

@@ -120,7 +120,8 @@ fn perform_handshake() -> Result<u128> {
#[derive(Serialize)] #[derive(Serialize)]
struct Record { struct Record {
time: u128, time: u64,
duration: u128,
} }
fn main() -> Result<()> { fn main() -> Result<()> {
@@ -128,7 +129,8 @@ fn main() -> Result<()> {
for _ in 0..SAMPLE_SIZE { for _ in 0..SAMPLE_SIZE {
wtr.serialize(Record { wtr.serialize(Record {
time: perform_handshake()?, time: SystemTime::now().duration_since(UNIX_EPOCH)?.as_secs(),
duration: perform_handshake()?,
})?; })?;
} }