   (future (save-chart (path @test-time "png")))
   ; TODO do things with output before it's cleared
   (swap! output identity* [])
+  (stop-and-reset-pool! runtime-pool)
   (update-main ::runtime-test
              :text "Start runtime test"
              :on-click #'runtime-test))

                        (.setXTitle "Minutes")
                        (.setYTitle "Relative Output")
                        (.setShowLegend false)
                        (.setZoomEnabled false)
                        (.setYAxisMin 0)
                        (.setYAxisMax 120)
                        (.setApplyBackgroundColor true)
                        (.setBackgroundColor Color/BLACK)
                        (.setYLabels 10)
                        (.setPanLimits (double-array [0 20000 0 200]))
                        (.setZoomLimits (double-array [0 20000 0 200]))
                        ))

(defn minutes-since [start-time]
  (float (/ (nanos-since start-time) 60000000000)))

#_(defn handle-lux-rt [lux start-time]
  (let [offset (minutes-since start-time)]
    (swap! output conj [lux offset])))

(defn sample-lux []
  (swap! output conj [@common/lux (minutes-since @test-time)]))

(def lux-30s (atom 0))

