Can I use tic and toc inside a parfor?
21 views (last 30 days)
Show older comments
Hello there,
I was wondering if I could do something like:
my_times = zeros(1,N);
parfor past_image = 1:N
my_time = tic;
do_stuff;
my_times(past_image) = toc(my_time);
end
Thanks,
Pedro
0 Comments
Accepted Answer
More Answers (0)
See Also
Categories
Find more on Loops and Conditional Statements in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!