From 07fc5b20947dfe03d69e497a11044d44f5479c59 Mon Sep 17 00:00:00 2001 From: eric bryant Date: Sun, 14 Jul 2019 01:43:04 -0400 Subject: [PATCH 1/2] C++: Timestamps as requested in #239 --- siteupdate/cplusplus/siteupdate.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/siteupdate/cplusplus/siteupdate.cpp b/siteupdate/cplusplus/siteupdate.cpp index e25dbea8..a5edd812 100644 --- a/siteupdate/cplusplus/siteupdate.cpp +++ b/siteupdate/cplusplus/siteupdate.cpp @@ -95,6 +95,9 @@ int main(int argc, char *argv[]) // start a timer for including elapsed time reports in messages ElapsedTime et; + timestamp = time(0); + cout << "Start: " << ctime(×tamp); + // create ErrorList ErrorList el; @@ -1093,6 +1096,8 @@ int main(int argc, char *argv[]) if (args.errorcheck) cout << "!!! DATA CHECK SUCCESSFUL !!!" << endl; + timestamp = time(0); + cout << "Finish: " << ctime(×tamp); cout << "Total run time: " << et.et() << endl; } From a203376b6b575cb321ef90522bfb8b9fdf15d42d Mon Sep 17 00:00:00 2001 From: eric bryant Date: Mon, 15 Jul 2019 18:49:48 -0400 Subject: [PATCH 2/2] operator fix for #243 --- siteupdate/cplusplus/siteupdate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/siteupdate/cplusplus/siteupdate.cpp b/siteupdate/cplusplus/siteupdate.cpp index a5edd812..06745554 100644 --- a/siteupdate/cplusplus/siteupdate.cpp +++ b/siteupdate/cplusplus/siteupdate.cpp @@ -941,7 +941,7 @@ int main(int argc, char *argv[]) // See if we have any errors that should be fatal to the site update process if (el.error_list.size()) - { cout << "ABORTING due to " << el.error_list.size() + " errors:" << endl; + { cout << "ABORTING due to " << el.error_list.size() << " errors:" << endl; for (unsigned int i = 0; i < el.error_list.size(); i++) cout << i+1 << ": " << el.error_list[i] << endl; return 0;