Skip to content

Commit 39f3d4f

Browse files
committed
Use nanoTime instead of currentTimeMillis
1 parent b0cd78f commit 39f3d4f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dev/simple_stress_test.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@
3636
(.readObject fr)))
3737

3838
(defmacro measure-duration [& body]
39-
`(let [st# (System/currentTimeMillis)]
39+
`(let [st# (System/nanoTime)]
4040
~@body
41-
(- (System/currentTimeMillis) st#)))
41+
(- (System/nanoTime) st#)))
4242

4343
(defn stress-test [{:keys [struct-type struct-size convert-list?] :as argmap}]
4444
(let [gen-struct-fn (case (str struct-type)

0 commit comments

Comments
 (0)