54 #ifndef ACG_TRACING_HH 55 #define ACG_TRACING_HH 60 #include "StopWatch.hh" 63 #include "../Config/ACGDefines.hh" 74 #define ACG_TRACE(_text) ACG::Tracing acg_tracer__(_text) 75 #define ACG_TRACE_CMD(_text, _cmd) { ACG_TRACE(_text); cmd; } 77 #define ACG_TIMED_TRACE(_text) ACG::TimedTracing acg_tracer__(_text) 78 #define ACG_TIMED_TRACE_CMD(_text, _cmd) { ACG_TIMED_TRACE(_text); _cmd; } 80 #define ACG_TRACE_PROGRESS acg_tracer__.progress() 125 std::ostream& _os = std::cerr)
127 { os_ << _text <<
" " << std::flush; }
137 os_ << progress_[((++idx_)&=0x3)] <<
"\b" << std::flush;
144 static char progress_[4];
145 static unsigned char idx_;
188 std::ostream& _os = std::cerr )
196 os_ << timer_.stop()*0.001 <<
" secs, ";
209 #endif // ACG_TRACING_HH defined
Namespace providing different geometric functions concerning angles.
TimedTracing(const std::string &_text, std::ostream &_os=std::cerr)
default constructor
Tracing(const std::string &_text, std::ostream &_os=std::cerr)
Constructor.
~TimedTracing()
destructor