www.gusucode.com > matlab 案例源码 matlab代码程序 > matlab/DetermineTimetoObtainCurrentDateExample.m

    %% 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.   
%%  

% Copyright 2015 The MathWorks, Inc.

f = @date;
t = timeit(f)