Joshua
open source statistical hierarchical phrase-based machine translation system
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
src/kenlm/util/stream/timer.hh
00001 #ifndef UTIL_STREAM_TIMER_H
00002 #define UTIL_STREAM_TIMER_H
00003 
00004 // Sorry Jon, this was adding library dependencies in Moses and people complained.
00005 
00006 /*#include <boost/version.hpp>
00007 
00008 #if BOOST_VERSION >= 104800
00009 #include <boost/timer/timer.hpp>
00010 #define UTIL_TIMER(str) boost::timer::auto_cpu_timer timer(std::cerr, 1, (str))
00011 #else
00012 //#warning Using Boost older than 1.48. Timing information will not be available.*/
00013 #define UTIL_TIMER(str)
00014 //#endif
00015 
00016 #endif // UTIL_STREAM_TIMER_H