From c1f154e71c7e592f7a10f43ad57b278ac054f544 Mon Sep 17 00:00:00 2001 From: adrien-matta <a.matta@surrey.ac.uk> Date: Tue, 18 Aug 2015 16:30:01 +0100 Subject: [PATCH] * Adding message to indicate when spectra are writting to file --- NPLib/Core/NPDetectorManager.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NPLib/Core/NPDetectorManager.cxx b/NPLib/Core/NPDetectorManager.cxx index 28c4c9b77..01a9f337c 100644 --- a/NPLib/Core/NPDetectorManager.cxx +++ b/NPLib/Core/NPDetectorManager.cxx @@ -352,9 +352,11 @@ void NPL::DetectorManager::InitSpectra(){ ///////////////////////////////////////////////////////////////////////////////////////////////// void NPL::DetectorManager::WriteSpectra(){ + std::cout << endl << "\r \033[1;36m *** Writing Spectra: this may take a while ***\033[0m"<<flush; map<string,VDetector*>::iterator it; for (it = m_Detector.begin(); it != m_Detector.end(); ++it) it->second->WriteSpectra(); + std::cout << "\r " << flush; } ///////////////////////////////////////////////////////////////////////////////////////////////// -- GitLab