* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
* Copyright (C) 2008-2008 - DIGITEO - Bruno JOFRET
*
- * This file must be used under the terms of the CeCILL.
- * This source file is licensed as described in the file COPYING, which
- * you should have received as part of this distribution. The terms
- * are also available at
- * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
+ * Copyright (C) 2012 - 2016 - Scilab Enterprises
+ *
+ * This file is hereby licensed under the terms of the GNU GPL v2.0,
+ * pursuant to article 5.3.4 of the CeCILL v.2.1.
+ * This file was originally licensed under the terms of the CeCILL v2.1,
+ * and continues to be available under such terms.
+ * For more information, see the COPYING file which you should have received
+ * along with this program.
*
*/
//===========================================================================
// Print out an optional message followed by the current timer timing.
- inline double check(const std::wstring _msg, bool _bRestart = false)
+ inline double check(const std::wstring& _msg, bool _bRestart = false)
{
// Print an optional message, something like "Checking timer t";
double t = elapsed_time();
+ std::streamsize ss = std::cout.precision();
if (_msg.empty() == false)
{
std::wcerr << L"[" << _msg << L"]" << L" : ";
std::wcerr << L"Elapsed time ["
<< std::setiosflags(std::ios::fixed)
<< std::setprecision(3)
- << t << L"] milliseconds"
+ << t
+ << std::setprecision(ss)
+ << L"] milliseconds"
<< std::endl;
if (_bRestart == true)