Liking cljdoc? Tell your friends :D

hara.io.scheduler.clock


clockclj

(clock meta)

creates an instance of a clock (clock (:clock scheduler/defaults)) ;;=> #clock {:start-time nil, ;; :current-time nil, ;; :running false}

creates an instance of a clock
(clock (:clock scheduler/*defaults*))
;;=> #clock {:start-time nil,
;;           :current-time nil,
;;           :running false}
raw docstring

clock-loopclj

(clock-loop clock recur?)

updates the clock tick, if recur? is true, then it keeps running (-> (:clock scheduler/defaults) (clock) (clock-loop false)) ;;=> #clock {:start-time nil, ;; :current-time #inst "2015-07-16T15:24:42.608-00:00", ;; :running false}

updates the clock tick, if `recur?` is true, then it keeps running
(-> (:clock scheduler/*defaults*)
    (clock)
    (clock-loop false))
;;=> #clock {:start-time nil,
;;           :current-time #inst "2015-07-16T15:24:42.608-00:00",
;;           :running false}
raw docstring

clock-startclj

(clock-start clock)

starts the clock

starts the clock
raw docstring

clock-started?clj

(clock-started? clock)

checks if the clock has started

checks if the clock has started
raw docstring

clock-stopclj

(clock-stop clock)

stops the clock

stops the clock
raw docstring

clock-stopped?clj

(clock-stopped? clock)

checks if the clock has stopped

checks if the clock has stopped
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close