Azzera filtri
Azzera filtri

How to measure parfeval() execution time?

4 visualizzazioni (ultimi 30 giorni)
JAI PRAKASH
JAI PRAKASH il 21 Nov 2018
Risposto: Edric Ellis il 22 Nov 2018
Is there any way to find how much time parfeval() to complete its execution?

Risposte (1)

Edric Ellis
Edric Ellis il 22 Nov 2018
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)

Categorie

Scopri di più su Asynchronous Parallel Programming in Help Center e File Exchange

Prodotti


Release

R2018b

Community Treasure Hunt

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

Start Hunting!

Translated by