Parcourir la source

standardize timing to second instead of millisecond

Gary Paduana il y a 9 ans
Parent
commit
9b50358e40

+ 1 - 1
src/main/groovy/com/garypaduana/groovytools/system/Timing.groovy

@@ -19,7 +19,7 @@ class Timing{
     static def timeIt = { closure ->
         def start = System.nanoTime()
         def result = closure()
-        def duration = (System.nanoTime() - start) / 1e6
+        def duration = (System.nanoTime() - start) / 1e9
         return [returnValue: result, duration: duration]
     }
 }