# Modifying the @time macro

**URL:** https://discourse.julialang.org/t/modifying-the-time-macro/2790
**Category:** New to Julia
**Tags:** macros
**Created:** [March 21, 2017, 10:43am UTC](https://discourse.julialang.org/t/modifying-the-time-macro/2790 "2017-03-21T10:43:29Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![leiteiro](https://avatars.discourse-cdn.com/v4/letter/l/b5e925/32.png) [@leiteiro](https://discourse.julialang.org/u/leiteiro)
#### Post date: [March 21, 2017, 1:27pm UTC](https://discourse.julialang.org/t/modifying-the-time-macro/2790/7 "2017-03-21T13:27:07Z")

</div>

Thanks Tamas, however

```
macro time2(ex)
    quote
        println($(Meta.quot(ex)))
        @time esc($(ex))
    end
end
myfunc(n::Int) = sleep(0.00001*n)
@time2 (for n in 0:100 myfunc(n) end)

```

outputs

```
for n = 0:100 # long\path\...\myfunc.jl, line 15:
    myFunc(n)
end
0.199292 seconds (612 allocations: 37.984 KB)

```

The problem here is the comment

```
# long\path\...\myfunc.jl, line 15:

```

which I do not want. How can I get rid of it?

---

_[View the full topic](https://discourse.julialang.org/t/modifying-the-time-macro/2790)._
