# @btime println("someText")?

**URL:** https://discourse.julialang.org/t/btime-println-sometext/24401
**Category:** General Usage
**Created:** [May 20, 2019, 1:49pm UTC](https://discourse.julialang.org/t/btime-println-sometext/24401 "2019-05-20T13:49:52Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mwolff](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@mwolff](https://discourse.julialang.org/u/mwolff)
#### Post date: [May 20, 2019, 1:49pm UTC](https://discourse.julialang.org/t/btime-println-sometext/24401/1 "2019-05-20T13:49:52Z")

</div>

Hello,

what’s wrong with the @btime macro when measuring the println function?  
Runs zig passes until it stops. Is this normal or is there a parameter that it will stop after a run.  
With @time there is no problem.

best regards

Michael wolff

---

<div class="post-metadata">

### Author: ![Daniel\_Berge](https://avatars.discourse-cdn.com/v4/letter/d/eb9ed0/32.png) [@Daniel\_Berge](https://discourse.julialang.org/u/Daniel_Berge)
#### Post date: [May 20, 2019, 2:13pm UTC](https://discourse.julialang.org/t/btime-println-sometext/24401/2 "2019-05-20T14:13:41Z")

</div>

`@benchmark println("Test") evals = 10 samples = 1` will limit the length it runs for example. BenchmarkTools runs multiple times to give a statistical result.

---

<div class="post-metadata">

### Author: ![mwolff](https://avatars.discourse-cdn.com/v4/letter/m/c2a13f/32.png) [@mwolff](https://discourse.julialang.org/u/mwolff)
#### Post date: [May 20, 2019, 2:18pm UTC](https://discourse.julialang.org/t/btime-println-sometext/24401/3 "2019-05-20T14:18:25Z")

</div>

Ok, thank you!
