Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revisionBoth sides next revision | ||
howto:time [2014/01/03 15:45] – external edit 127.0.0.1 | howto:time [2017/02/03 17:06] – added example code for user functions oroehrig | ||
---|---|---|---|
Line 7: | Line 7: | ||
$r=rand_sphere(3, | $r=rand_sphere(3, | ||
</ | </ | ||
- | This code does not work in a [[scripting: | + | Note that if timing a user function, you have to provide the application your function lives in: |
+ | < | ||
+ | polytope > $t=timeit(1,' | ||
+ | </ | ||
+ | |||
+ | The above code does not work in a [[scripting: | ||
< | < | ||
use Benchmark qw(:all); | use Benchmark qw(:all); |