diff --git a/src/main.rs b/src/main.rs index 126042c..7d86200 100644 --- a/src/main.rs +++ b/src/main.rs @@ -120,7 +120,8 @@ fn perform_handshake() -> Result { #[derive(Serialize)] struct Record { - time: u128, + time: u64, + duration: u128, } fn main() -> Result<()> { @@ -128,7 +129,8 @@ fn main() -> Result<()> { for _ in 0..SAMPLE_SIZE { wtr.serialize(Record { - time: perform_handshake()?, + time: SystemTime::now().duration_since(UNIX_EPOCH)?.as_secs(), + duration: perform_handshake()?, })?; }