You may want to take a look at the CPUTime package.
https://github.com/schmrlng/CPUTime.jl

On Wednesday, February 3, 2016 at 12:28:28 PM UTC-8, Lytu wrote:
>
> Hello Julia users,
>
> Can someone tell me what's the equivalent of matlab elapsed cputime in 
> Julia
>
> For example i Matlab, we can do this:
>
>    t = cputime;
>    x=4;
>
>    iter = 1; 
>
>    z = ones(1,4);
>
>    y=x*2*z;
>
> e = cputime-t
>
>
> But in Julia i don't seem to find how to do this. I thought i can use 
>
>    t=time()
>
>    x=4;
>
>    iter = 1; 
>
>    z = ones(1,4);
>
>    y=x*2*z;
>
>    e=time()-t
>
>
> But time() in Julia is not the elapsed CPU time, it's a wall clock time.
>
>
> Can someone help me?
>
>
> Thank you
>
>

Reply via email to