Add time of handshake to output
This commit is contained in:
@@ -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()?,
|
||||||
})?;
|
})?;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user