From c6192a1d2873a4714ffed161baabe842c56b7eda Mon Sep 17 00:00:00 2001 From: John Romein <romein@astron.nl> Date: Mon, 29 Jan 2007 15:39:28 +0000 Subject: [PATCH] BugID: 225 Better diagnostics --- Appl/CEP/CS1/CS1_Storage/src/WH_SubbandWriter.cc | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/Appl/CEP/CS1/CS1_Storage/src/WH_SubbandWriter.cc b/Appl/CEP/CS1/CS1_Storage/src/WH_SubbandWriter.cc index ba9711e11c9..b985670a585 100644 --- a/Appl/CEP/CS1/CS1_Storage/src/WH_SubbandWriter.cc +++ b/Appl/CEP/CS1/CS1_Storage/src/WH_SubbandWriter.cc @@ -40,6 +40,8 @@ #include <GCF/GCF_PVString.h> #endif +#include <time.h> + namespace LOFAR { namespace CS1 @@ -232,9 +234,17 @@ namespace LOFAR void WH_SubbandWriter::process() { static int counter = 0; - - cout << "count = " << counter++ << endl; - + time_t now = time(0); + char buf[26]; + ctime_r(&now, buf); + buf[24] = '\0'; + + cout << "time = " << buf << +#if defined HAVE_MPI + ", rank = " << TH_MPI::getCurrentRank() << +#endif + ", count = " << counter ++ << endl; + if (itsTimeCounter % itsTimesToIntegrate == 0) { clearAllSums(); } -- GitLab