Try 

@time @sync @parallel for i=1:10
    ...
end

On Thursday, December 10, 2015 at 11:55:58 PM UTC+1, digxx wrote:
>
> Apparently for a parallel loop the @time macro or tic() toc() do not 
> measure the time?!
> I directly get a result for the time but know that the calculation is 
> still ongoing.
> Is the usage like this:
> @time @parallel for i=1:10
>
>
> end
>

Reply via email to