From 2afb44ffc0c23c92b950323c9bbd8b80d9483233 Mon Sep 17 00:00:00 2001 From: Yuriy Skalko Date: Sat, 12 Oct 2013 12:30:24 +0300 Subject: [PATCH] Complete fix #4478 --- base/util.jl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/base/util.jl b/base/util.jl index 93b9657258ae2..bf21a1290723a 100644 --- a/base/util.jl +++ b/base/util.jl @@ -44,7 +44,7 @@ macro time(ex) local val = $(esc(ex)) local t1 = time_ns() local b1 = gc_bytes() - println("elapsed time: ", (t1-t0)/1e9, " seconds (", int(b1-b0), " bytes allocated)") + println("elapsed time: ", (t1-t0)/1e9, " seconds (", b1-b0, " bytes allocated)") val end end @@ -67,7 +67,7 @@ macro allocated(ex) b0 = gc_bytes() $(esc(ex)) b1 = gc_bytes() - int(b1-b0) + b1-b0 end f() end @@ -82,7 +82,7 @@ macro timed(ex) local val = $(esc(ex)) local t1 = time_ns() local b1 = gc_bytes() - val, (t1-t0)/1e9, int(b1-b0) + val, (t1-t0)/1e9, b1-b0 end end