How to measure parfeval() execution time?

조회 수: 2 (최근 30일)
JAI PRAKASH
JAI PRAKASH 2018년 11월 21일
답변: Edric Ellis 2018년 11월 22일
Is there any way to find how much time parfeval() to complete its execution?

답변 (1개)

Edric Ellis
Edric Ellis 2018년 11월 22일
A parallel.Future instance has StartDateTime and FinishDateTime properties - you can subtract these to get an idea of the execution time. (I wouldn't count on this being terribly precise - it depends what you want the information for). For example
parpool('local', 1);
f = parfeval(@pause, 0, pi);
wait(f);
dur = f.FinishDateTime - f.StartDateTime
durSeconds = seconds(dur)

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품


릴리스

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by