Problem 1690. Return elapsed time

Created by Matthew Eicholtz in Community

Write a function that returns the amount of time it takes to run the function, as measured by tic and toc. Your answer must be correct to within 5 milliseconds.

Basic template is:

t = timetorun()

Solution Stats

4.37% Correct | 95.63% Incorrect
Last solution submitted on Jan 23, 2019

Recent Solvers13

Suggested Problems

More from this Author46


Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

MATLAB Academy

New to MATLAB?

Learn MATLAB today!