Browse Source

standardize timing to second instead of millisecond

Gary Paduana 9 years ago
parent
commit
9b50358e40
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/groovy/com/garypaduana/groovytools/system/Timing.groovy

+ 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]
     }
 }