Skip to content

Commit

Permalink
Complete fix JuliaLang#4478
Browse files Browse the repository at this point in the history
  • Loading branch information
magistere committed Oct 12, 2013
1 parent 59256c2 commit 2afb44f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions base/util.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -67,7 +67,7 @@ macro allocated(ex)
b0 = gc_bytes()
$(esc(ex))
b1 = gc_bytes()
int(b1-b0)
b1-b0
end
f()
end
Expand All @@ -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

Expand Down

0 comments on commit 2afb44f

Please sign in to comment.