How to make the tic/toc function compute time in microseconds instead of seconds

3 views (last 30 days)
I am trying to measure the time it takes for my function to run in microseconds instead of seconds using the tic/toc functions.
  3 Comments
Walter Roberson
Walter Roberson on 6 Dec 2019
It is not possible to configure tic/toc to measure microseconds explicitly. You can though scale the seconds result.
Jasmine Martinez
Jasmine Martinez on 6 Dec 2019
I just wanted to see if there was a way to change some sort of settings within the function but yeah the scaling seamed like the best way I could find. Thank you for your help.

Sign in to comment.

Answers (0)

Categories

Find more on MATLAB 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!