[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master 5771734 3/3: Experimentally count copied cell
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master 5771734 3/3: Experimentally count copied cells on statusbar |
Date: |
Tue, 26 Jun 2018 18:36:55 -0400 (EDT) |
branch: master
commit 57717342e58f49f7fa04495838c93dce59cc1760
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Experimentally count copied cells on statusbar
Added code to help evaluate the idea that displaying an iteration count
on the statusbar is better than showing a busy cursor. If the entire
operation is very fast, then flashing a busy cursor is just a nuisance.
Showing a count on the statusbar serves the same purpose and is less
obtrusive. However, if each iteration is very fast, then the overhead of
displaying progress on the statusbar may be significant: in this case,
it makes a half-second operation take approximately twice as long.
---
census_view.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/census_view.cpp b/census_view.cpp
index 3bcf28c..5d567d6 100644
--- a/census_view.cpp
+++ b/census_view.cpp
@@ -1949,6 +1949,7 @@ void CensusView::DoCopyCensus() const
}
ofs << '\n';
+ int counter = 0;
for(auto const& cell : cell_parms())
{
for(auto const& header : distinct_headers)
@@ -1963,6 +1964,7 @@ void CensusView::DoCopyCensus() const
ofs << s << '\t';
}
ofs << '\n';
+ status() << "Copied cell number " << ++counter << '.' << std::flush;
}
if(!ofs)