Skip to content

Commit 55837bf

Browse files
committed
Initialize duration in seconds
1 parent 252fcff commit 55837bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/software/utils/main_imageProcessing.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1694,7 +1694,7 @@ int aliceVision_main(int argc, char* argv[])
16941694
std::chrono::seconds interval = std::chrono::seconds(1);
16951695
std::chrono::seconds timeout = std::chrono::seconds(rangeIteration*60);
16961696
auto start_time = std::chrono::steady_clock::now();
1697-
std::chrono::seconds durationSeconds; // = std::chrono::duration_cast<std::chrono::seconds>(start_time);
1697+
std::chrono::seconds durationSeconds = std::chrono::duration_cast<std::chrono::seconds>(std::chrono::steady_clock::now() - start_time);
16981698
while (!isFileReadable(sfmfilePath_in))
16991699
{
17001700
auto elapsed = std::chrono::steady_clock::now() - start_time;

0 commit comments

Comments
 (0)