I have a function someFunction[]
that takes a long time to evaluate. I would like to run
{time, result} = Timing@someFunction[];
to also measure the execution time. Instead, I forgot to include Timing@
and wrote
{time, result} = someFunction[];
This ran for a long time, but right at the end when the value was supposed to be assigned a "Set: Lists {time, result} and <<1>> are not the same shape.
" error was thrown, and I got nothing out. Is there a way to still recover the result of the computation? It would be a shame if there wasn't - the result was already computed, and just the assignment failed.
timing = AbsoluteTiming[ result = someFunction[] ];
$\endgroup$