timer inside parfor inside mex function
3 views (last 30 days)
Is there any way to time some code that is inside a parfor that is inside a function I'm trying to convert to mex via the Coder Toolbox?
function [outputs] = to_be_mexed(inputs)
parfor i = 1:100
tic and toc are not supported for code generation (same for clock and seemingly all other built-ins for timing), and, if I use coder.extrinsic, that ordinarily works, but apparently is not allowed within a parfor inside a mex function. Any way to time stuff here? Can be very crude, +/- a few seconds would be more than fine.