lib/flashsdk/mxmlc.rb in flashsdk-1.0.26.pre vs lib/flashsdk/mxmlc.rb in flashsdk-1.0.27.pre

- old
+ new

@@ -117,13 +117,11 @@ # The default executable target. # set :executable, :mxmlc def execute - start = Time.now - super - duration = (Time.now - start).seconds - Sprout.stdout.puts "[MXMLC] Compilation complete in #{duration} seconds." unless use_fcsh? + duration = Benchmark.measure { super } + Sprout.stdout.puts "[MXMLC] Compilation complete in #{duration.real} seconds." unless use_fcsh? end def use_fcsh? # Check as string b/c this is # how the boolean value comes