lib/astrails/safe/local.rb in astrails-safe-0.2.0 vs lib/astrails/safe/local.rb in astrails-safe-0.2.1

- old
+ new

@@ -17,10 +17,13 @@ def save puts "command: #{@backup.command}" if $_VERBOSE unless $DRY_RUN FileUtils.mkdir_p(path) unless File.directory?(path) - system "#{@backup.command}>#{@backup.path = full_path}" + benchmark = Benchmark.realtime do + system "#{@backup.command}>#{@backup.path = full_path}" + end + puts("command took " + sprintf("%.2f", benchmark) + " second(s).") if $_VERBOSE end end def cleanup