(define (display-log dir log-file vol)
  (let ((pt #f))
   (read-log-data dir (format #f "~a-vol~a.log" log-file vol)
    (lambda (line)
      (let ((time (first line))
            (points (assoc 'points (third line)))
           )
        (when points
          (draw-points (cdr points) "RIGHT" "000000" #f)
          (when pt (thread-sleep (- time pt)))
          (set! pt time)
        )
      )))
 )
)
end of example