From ad7d8f7a8116367ee69a26c540637041abb5e1c1 Mon Sep 17 00:00:00 2001 From: Tony Garnock-Jones Date: Tue, 6 May 2014 21:35:09 -0400 Subject: [PATCH] Note re possible measurement error --- internal-latency.rkt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/internal-latency.rkt b/internal-latency.rkt index b60ecfd..1f32d34 100644 --- a/internal-latency.rkt +++ b/internal-latency.rkt @@ -30,6 +30,9 @@ (transition s (send-ping src dst))] [(message (ping (== dst) (== src) start-time) _ _) (define stop-time (current-inexact-milliseconds)) + ;; TODO: is there a way of reducing the measurement error here, + ;; perhaps by recording against run-start-time instead of start-time, somehow? + ;; TODO: first, characterize the measurement error (define delta (- stop-time start-time)) (set! total-latency (+ total-latency delta)) (set! total-roundtrips (+ total-roundtrips 1))