Resolve "Output time of otbcli applications in minutes, seconds instead of scientific notation"
Summary
Use human readable format for output time in otbcli applications. Closes #763 (closed)
Rationale
Issue #763 (closed)
Copyright
The copyright owner is CNES and has signed the ORFEO ToolBox Contributor License Agreement.
***Check before merging:*** - All discussions are resolved - At least 2


Merge request reports
Activity
- Resolved by Julien Michel
There seems to be something wrong on windows:
https://dash.orfeo-toolbox.org/viewBuildError.php?buildid=327930
I would have like to say: just use
strftime
orstd::put_time
, unfortunately it isn't made to display durations. For durations, there is a neat solution with Howard Hinnant date library: https://howardhinnant.github.io/date/date.html#duration_ioAnyway. As a side note, for ossim OTB plugin I wrote
ossimTimeUtilities.h
. May be it could be interesting to integrate such a toolbox in OTB. I'm quite sure this is the kind of code that we are likely to need elsewhere.BTW, I have a question, why are we using plain integers and not
std::chrono::duration
?Edited by Luc HermitteBTW, I have a question, why are we using plain integers and not
std::chrono::duration
?There are some issues on MSVC with exporting (as in
ITK_EXPORT
) standard library types. I can't find the originalotbStopwatch
MR, but it caused a build error back then.- Automatically resolved by Julien Michel
- Automatically resolved by Julien Michel
- Automatically resolved by Julien Michel
- Resolved by Julien Michel
BTW, I have a question, why are we using plain integers and not
std::chrono::duration
?There are some issues on MSVC with exporting (as in
ITK_EXPORT
) standard library types. I can't find the originalotbStopwatch
MR, but it caused a build error back then.OK. Thanks for the reminder.
I can't find the original MR
For reference, this was probably https://msdn.microsoft.com/en-us/library/esew7y1w.aspx?f=255&MSPPError=-2147217396 (
C4251
).added 1 commit
- e928596a - COMP: Fix or operator not well supported by MSVC (+ a few style edits)
mentioned in commit 49bdd852
mentioned in issue #1682 (closed)
added feature label
changed milestone to %7.0.0