Is it posible to monitoring conditional run time of a script?

I can calculate the run time of a script with tic-toc, but it is a varying value since other programs can use the computer at the same time. So it would be nice if memory or CPU usage can be monitored and use for normalization. Is it possible?

This question is closed.

Asked:

on 19 Jun 2015

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!