Record execution time on optimcmaesshell.m.