10 #include <tbb/tick_count.h>
11 #include <boost/noncopyable.hpp>
12 #include <vlutil/vlPrint.h>
31 , myStart(tbb::tick_count::now())
42 double d = (tbb::tick_count::now() - myStart).seconds();
43 myStream << myText <<
" took " << d <<
" seconds" << std::endl;
#define DT_DLL_features
stop complaining about multiple independent base classes for boost::noncopyable this should probably ...
Definition: featuresDefines.h:36
~DtScopeTimer()
Definition: scopeTimer.h:40
DtScopeTimer(const std::string &text, std::ostream &str=DtWarn)
Constructor.
Definition: scopeTimer.h:28
This is a simple wrapper around tbb::tick_count timing to be able to easily time a scope of code...
Definition: scopeTimer.h:22
std::string myText
Definition: scopeTimer.h:48
tbb::tick_count myStart
Definition: scopeTimer.h:49
std::ostream & myStream
Definition: scopeTimer.h:47
std::string & text()
Definition: scopeTimer.h:35