Skip to content

Commit 738c902

Browse files
committed
Make total time measurements always available
1 parent e66f9a4 commit 738c902

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

performance/performance_decomposed.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686
catch ME
8787
warning(ME.message)
8888
Q = [];
89+
solver_stats.total = toc(timer);
8990
return
9091
end
9192
end
@@ -104,6 +105,7 @@
104105
Q = value(Q);
105106
solver_stats.yalmip = sol.yalmiptime;
106107
solver_stats.solver = sol.solvertime;
107-
solver_stats.total = toc(timer);
108108
end
109+
110+
solver_stats.total = toc(timer);
109111
end

performance/performance_enumerated.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@
118118
catch ME
119119
warning(ME.message)
120120
Q = [];
121+
solver_stats.total = toc(timer);
121122
return
122123
end
123124

@@ -135,6 +136,7 @@
135136
Q = value(Q);
136137
solver_stats.yalmip = sol.yalmiptime;
137138
solver_stats.solver = sol.solvertime;
138-
solver_stats.total = toc(timer);
139139
end
140+
141+
solver_stats.total = toc(timer);
140142
end

performance/performance_mean.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@
8585
catch ME
8686
warning(ME.message)
8787
Q = [];
88+
solver_stats.total = toc(timer);
8889
return
8990
end
9091
end
@@ -103,6 +104,7 @@
103104
Q = value(Q);
104105
solver_stats.yalmip = sol.yalmiptime;
105106
solver_stats.solver = sol.solvertime;
106-
solver_stats.total = toc(timer);
107107
end
108+
109+
solver_stats.total = toc(timer);
108110
end

0 commit comments

Comments
 (0)