%% Determine Time to Obtain Current Date
% Use timeit to time a function call to date. This example uses a handle to a function that accepts no input.

f = @date;
t = timeit(f)

% Copyright 2015 The MathWorks, Inc.