]> www.ginac.de Git - cln.git/blobdiff - include/cln/timing.h
Replace CL_REQUIRE/CL_PROVIDE(cl_I_ring) with portable code.
[cln.git] / include / cln / timing.h
index 2b650062a3d6442909f308408a9152b00bcd53da..a4be4f7302dbb73651eb88ee4e729933e327868a 100644 (file)
@@ -47,13 +47,13 @@ extern const cl_time_consumption cl_current_time_consumption ();
 
 // Report a time consumption.
 // (Should better be a virtual member function of `cl_time_consumption').
-extern void cl_timing_report (cl_ostream, const cl_time_consumption&);
+extern void cl_timing_report (std::ostream&, const cl_time_consumption&);
 
 struct cl_timing {
        // Constructor, starts the time interval.
        cl_timing (cl_time_consumption& accumulator);
-       cl_timing (cl_ostream destination = stderr);
-       cl_timing (const char *, cl_ostream destination = stderr);
+       cl_timing (std::ostream& destination = std::cerr);
+       cl_timing (const char *, std::ostream& destination = std::cerr);
        // Destructor, closes the time interval and does a report.
        ~cl_timing ();  
 //private:
@@ -67,7 +67,7 @@ struct cl_timing {
 // Usage:
 //     { CL_TIMING; computation(); }
 // or  { CL_TIMING(accumulator); computation(); }
-// or  { CL_TIMING(stdout); computation(); }
+// or  { CL_TIMING(cout); computation(); }
 // The timing interval starts immediately and ends at the closing brace.
 #define CL_TIMING  CL_TIMING1(__LINE__)
 #define CL_TIMING1(line)  CL_TIMING2(line)