Check out example codes for "matlab time function". It will help you in understanding the concepts better.

Code Example 1

f = @() myComputeFunction(x,y); % handle to function
timeit(f)

Learn ReactJs, React Native from akashmittal.com