Created
August 20, 2014 23:03
-
-
Save ztellman/741ee67f121fdfb7083c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(future | |
(loop [next-update (+ (System/currentTimeMillis) 1e3)] | |
(with-open [w (io/writer path)] | |
(.write w (str (.time ^PartialFlake @f)))) | |
;; sleep for a second before writing the next timestamp | |
(Thread/sleep (- next-update (System/currentTimeMillis))) | |
(recur (+ next-update 1e3)))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment