Output time of otbcli applications in minutes, seconds instead of scientific notation
Mantis Issue 763, reported by dcd, assigned to jmichel, created: 2013-08-19
The output time after the progress isn't too informative unless you can divide scientific notation in your head (which I suspect many do). Can this just output in minutes and seconds instead?
Writing /home/socrates/test/labeled_image.tif...: 100% [**************************************************] (3e+02 seconds)
This is a little more user friendly:
Writing /home/socrates/test/labeled_image.tif...: 100% [**************************************************] (5m2s)
Steps to reproduce:
run otbcli_ImageClassifier
likely an issue with other otbcli applications
2013-08-19 20:01 - dcd: OTB 3.18.1 downloaded via mecurial and compiled
2013-08-20 16:54 - grizonnetm: agree that it should be nice to add this functionality.
In this case OTB rely on an ITK functionality to trace the time of processing. It uses internally the itkTimeProbe class:
http://hg.orfeo-toolbox.org/OTB/file/d96b1e621003/Utilities/ITK/Code/Common/itkTimeProbe.h#l39
perhaps this functionality exists now in new ITKv4 version.