Created
February 11, 2016 20:14
-
-
Save ryfow/4283b64b4dd205d610e8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
(def ^:dynamic *indent* 0) | |
(alter-var-root | |
#'clojure.core/load | |
(fn [orig] | |
(fn [& paths] | |
(let [t (System/nanoTime) | |
r (binding [*indent* (inc *indent*)] | |
(apply orig paths))] | |
(binding [*out* *err*] | |
(println (apply str (repeat *indent* " ")) (/ (- (System/nanoTime) t) 1000000.0) paths) | |
(flush)) | |
r)))) | |
(require 'clojure.core.async) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Example usage:
Example output: