How to measure runtime, if it is possible to close my laptop during the run?

3 views (last 30 days)
so I don't want to count the pause time, when CPU is not working.

Answers (1)

Fangjun Jiang
Fangjun Jiang on 26 Apr 2018
Edited: Walter Roberson on 26 Apr 2018
cputime()?
search "The cputime Function vs. tic/toc and timeit" on this page

Categories

Find more on Historical Contests in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!