Hey @AfonsoSalgadoSousa , according to this - State — PyTorch-Ignite v0.4.7 Documentation 1
state.times only stores time after an epoch is completed [key: EPOCH_COMPLETED] or after the evaluator has completed validation [key: COMPLETED] like you are using. There is no key to know the time after each iteration in state.
To get the desired output, you can use BasicTimeProfiler - How to do time profiling | PyTorch-Ignite to get the time ITERATION_COMPLETED took.