60 #ifndef ACG_TRACING_HH
61 #define ACG_TRACING_HH
66 #include "StopWatch.hh"
69 #include "../Config/ACGDefines.hh"
80 #define ACG_TRACE(_text) ACG::Tracing acg_tracer__(_text)
81 #define ACG_TRACE_CMD(_text, _cmd) { ACG_TRACE(_text); cmd; }
83 #define ACG_TIMED_TRACE(_text) ACG::TimedTracing acg_tracer__(_text)
84 #define ACG_TIMED_TRACE_CMD(_text, _cmd) { ACG_TIMED_TRACE(_text); _cmd; }
86 #define ACG_TRACE_PROGRESS acg_tracer__.progress()
131 std::ostream& _os = std::cerr)
133 { os_ << _text <<
" " << std::flush; }
143 os_ << progress_[((++idx_)&=0x3)] <<
"\b" << std::flush;
150 static char progress_[4];
151 static unsigned char idx_;
194 std::ostream& _os = std::cerr )
202 os_ << timer_.stop()*0.001 <<
" secs, ";
215 #endif // ACG_TRACING_HH defined
Namespace providing different geometric functions concerning angles.
~TimedTracing()
destructor
TimedTracing(const std::string &_text, std::ostream &_os=std::cerr)
default constructor
Tracing(const std::string &_text, std::ostream &_os=std::cerr)
Constructor.