%% Measure CPU Time to Run Code
% Measure the CPU time used to run surf(peaks(40)).

tStart = cputime;
surf(peaks(40))
tEnd = cputime - tStart

% Copyright 2019 The MathWorks, Inc.