How about:

julia> @sync begin
           @spawnat 2 @time f()
           @spawnat 3 @time f()
       end
        From worker 3:  hello 3
        From worker 2:  hello 2
        From worker 3:  elapsed time: 0.004608077 seconds (31 kB allocated)
        From worker 2:  elapsed time: 0.004780943 seconds (38 kB allocated)


On Fri, Feb 20, 2015 at 7:36 PM, Freddy Chua <[email protected]> wrote:

> If I execute the following,
>
> @sync begin
>   @spawnat remote_process_id_1 f()
>   @spawnat remote_process_id_2 f()
> end
>
> How do I measure how much time each individual process takes?
>
> @elapsed is only for an aggregated value.
>

Reply via email to