Skip to content

Commit 5c0790f

Browse files
committed
Initialize duration in seconds
1 parent 3b60ad7 commit 5c0790f

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
@@ -1696,7 +1696,7 @@ int aliceVision_main(int argc, char* argv[])
16961696
std::chrono::seconds interval = std::chrono::seconds(1);
16971697
std::chrono::seconds timeout = std::chrono::seconds(rangeIteration*60);
16981698
auto start_time = std::chrono::steady_clock::now();
1699-
std::chrono::seconds durationSeconds; // = std::chrono::duration_cast<std::chrono::seconds>(start_time);
1699+
std::chrono::seconds durationSeconds = std::chrono::duration_cast<std::chrono::seconds>(std::chrono::steady_clock::now() - start_time);
17001700
while (!isFileReadable(sfmfilePath_in))
17011701
{
17021702
auto elapsed = std::chrono::steady_clock::now() - start_time;

0 commit comments

Comments
 (0)