how we can compute the training time of deep neural networks?
If you are using a jupyter notebook or any notebook using a .ipynb file then you can use the: %%time, to calculate the time to run the cell.
If you are planning to use a .py code and just want to calculate the time the code runs you can utilise the time library before and after the training portion of the code, you could use the following method

from time import time
start = time()
"Your code"
print(time()-start)
I am currently working on a deep neural network, but i am confused about how we can compute the training time of a deep neural network. How i will know that my neural network takes less time compared to other deep neural networks.
I am looking forward to your help and any article recommendation.