Note re possible measurement error

This commit is contained in:
Tony Garnock-Jones 2014-05-06 21:35:09 -04:00
parent 68ccb4fafa
commit ad7d8f7a81
1 changed files with 3 additions and 0 deletions

View File

@ -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))