You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: timing.m
    path of file: ./repos/prima/matlab/tests
    
    the code of the file until where you have to start completion: function [tlist, plist] = timing(solver, mindim, maxdim, blacklist, minip)

% Find where MatCUTEst is installed
locate_matcutest();

% Mute the warnings
orig_warning_state = warnoff({solver});

% Prepare the solver
cpwd = pwd();  % The current directory
mfiledir = fileparts(mfilename('fullpath'));  % The directory containing this m file
prima_dir = fileparts(fileparts(mfiledir));  % The directory containing the setup script
cd(prima_dir);

    
function [tlist, plist] = timing(solver, mindim, maxdim, blacklist, minip)

% Find where MatCUTEst is installed
locate_matcutest();

% Mute the warnings
orig_warning_state = warnoff({solver});

% Prepare the solver
cpwd = pwd();  % The current directory
mfiledir = fileparts(mfilename('fullpath'));  % The directory containing this m file
prima_dir = fileparts(fileparts(mfiledir));  % The directory containing the setup script
cd(prima_dir);
clear('setup');  % Without this, the next line may not call the latest version of `setup`
setup(solver);
cd(cpwd);

% In case blacklist and minip are not present ...
if nargin <= 3
    blacklist = {};
end