MATLAB Answers

how to get the time elapsed in matlab deep learning

4 views (last 30 days)
Lee Willy
Lee Willy on 17 Jun 2020
Commented: Lee Willy on 1 Jul 2020
I had saw my training modal's "info" .
But it didn't have any information about training time information.
how can I get the time elapsed ?
Thanks !


Sign in to comment.

Accepted Answer

Rushi Vyas
Rushi Vyas on 18 Jun 2020
Hi Lee,
It is my understanding that you want get the elapsed time for training your deep learning model.
When you train your model using trainNetwork(), a “Training Progress” window will appear that has all the necessary information.
You can find the “elapsed time” data under “Training Time” heading


Lee Willy
Lee Willy on 18 Jun 2020
But i can't catch the elapsed time data to save it to the variable.
So if I wanna save data, manually saving is the only way?
Rushi Vyas
Rushi Vyas on 18 Jun 2020
I understand that you want to save the elapsed time In a variable.
You can use stopwatch commands tic and toc to save the elapsed time of any function/code. For example,
>> tic;
elapsed = toc;
>> elapsed
elapsed =

Sign in to comment.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!